aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp
diff options
context:
space:
mode:
authorivanmorozov <ivanmorozov@yandex-team.com>2022-11-07 13:26:37 +0300
committerivanmorozov <ivanmorozov@yandex-team.com>2022-11-07 13:26:37 +0300
commit3ec63e4abb2b40be05ea2d7a79e1cfdc249697b3 (patch)
tree39de33b1319f05ff909a6d9f44c44e1affecf12f /library/cpp
parent33e0f47c0e8e26c4778d83646252b59c717a4c7b (diff)
downloadydb-3ec63e4abb2b40be05ea2d7a79e1cfdc249697b3.tar.gz
async send method
Diffstat (limited to 'library/cpp')
-rw-r--r--library/cpp/actors/testlib/test_runtime.cpp4
-rw-r--r--library/cpp/actors/testlib/test_runtime.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/library/cpp/actors/testlib/test_runtime.cpp b/library/cpp/actors/testlib/test_runtime.cpp
index b14892f67d5..06ad5d5353c 100644
--- a/library/cpp/actors/testlib/test_runtime.cpp
+++ b/library/cpp/actors/testlib/test_runtime.cpp
@@ -1423,6 +1423,10 @@ namespace NActors {
SendInternal(ev, senderNodeIndex, viaActorSystem);
}
+ void TTestActorRuntimeBase::SendAsync(IEventHandle* ev, ui32 senderNodeIndex) {
+ Send(ev, senderNodeIndex, true);
+ }
+
void TTestActorRuntimeBase::Schedule(IEventHandle* ev, const TDuration& duration, ui32 nodeIndex) {
TGuard<TMutex> guard(Mutex);
Y_VERIFY(nodeIndex < NodeCount);
diff --git a/library/cpp/actors/testlib/test_runtime.h b/library/cpp/actors/testlib/test_runtime.h
index c14cde1b666..163f6bdfd90 100644
--- a/library/cpp/actors/testlib/test_runtime.h
+++ b/library/cpp/actors/testlib/test_runtime.h
@@ -261,6 +261,7 @@ namespace NActors {
bool DispatchEvents(const TDispatchOptions& options, TDuration simTimeout);
bool DispatchEvents(const TDispatchOptions& options, TInstant simDeadline);
void Send(IEventHandle* ev, ui32 senderNodeIndex = 0, bool viaActorSystem = false);
+ void SendAsync(IEventHandle* ev, ui32 senderNodeIndex = 0);
void Schedule(IEventHandle* ev, const TDuration& duration, ui32 nodeIndex = 0);
void ClearCounters();
ui64 GetCounter(ui32 evType) const;