Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards



Try to send a message without blocking, using dispatch semantics to call the receive operation's completion handler.

    typename... Args>
bool try_send_via_dispatch(
    Args &&... args);

Fails if the buffer is full and there are no waiting receive operations.

The receive operation's completion handler may be called from inside this function.

Return Value

true on success, false on failure.