ask.h 404 B

123456789101112131415161718
  1. #pragma once
  2. #include "actor.h"
  3. #include "event.h"
  4. #include <library/cpp/threading/future/future.h>
  5. namespace NActors {
  6. /**
  7. * See `TActorSystem::Ask`.
  8. */
  9. THolder<IActor> MakeAskActor(
  10. TMaybe<ui32> expectedEventType,
  11. TActorId recipient,
  12. THolder<IEventBase> event,
  13. TDuration timeout,
  14. const NThreading::TPromise<THolder<IEventBase>>& promise);
  15. }