mirror of https://github.com/oxen-io/oxen-mq.git
506bd65b05
This provides an interface for sending a reply to a message later (i.e. after the Message& itself is no longer valid) by using a new `send_later()` method of the Message instance that returns an object that can properly route replies (and can outlive the Message it was called on). Intended use is: run_this_lambda_later([send=msg.send_later()] { send.reply("content"); }); which is equivalent to: run_this_lambda_later([&msg] { msg.send_reply("content"); }); except that it works properly even if the lambda is invoked beyond the lifetime of `msg`. |
||
---|---|---|
.. | ||
Catch2@b3b07215d1 | ||
CMakeLists.txt | ||
common.h | ||
main.cpp | ||
test_address.cpp | ||
test_batch.cpp | ||
test_bt.cpp | ||
test_commands.cpp | ||
test_connect.cpp | ||
test_encoding.cpp | ||
test_failures.cpp | ||
test_inject.cpp | ||
test_requests.cpp | ||
test_tagged_threads.cpp |