aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/actors/core/ask.h
blob: 036f1833a4f172f64669b3176eeb045adce5fdaf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include "actor.h"
#include "event.h"

#include <library/cpp/threading/future/future.h>

namespace NActors {
    /**
     * See `TActorSystem::Ask`.
     */
    THolder<IActor> MakeAskActor(
        TMaybe<ui32> expectedEventType,
        TActorId recipient,
        THolder<IEventBase> event,
        TDuration timeout,
        const NThreading::TPromise<THolder<IEventBase>>& promise);
}