|
Binance C++ Connector 2.0.0
Official C++ connectors for the Binance APIs
|
A registration made with on_event. More...
#include <websocket_common.hpp>
Public Member Functions | |
| Subscription ()=default | |
| Subscription (std::function< void()> unsubscribe) | |
| Subscription (Subscription &&other) noexcept | |
| Subscription & | operator= (Subscription &&other) noexcept |
| Subscription (const Subscription &)=delete | |
| Subscription & | operator= (const Subscription &)=delete |
| ~Subscription () | |
| void | unsubscribe () noexcept |
| Stops the callback. | |
| void | release () noexcept |
| Detaches the callback from this handle: it then runs until the client is destroyed. | |
A registration made with on_event.
Move-only: destroying it, or assigning over it, removes the callback. release() keeps the callback for the client's lifetime.
|
default |
|
inlineexplicit |
|
inlinenoexcept |
|
delete |
|
inline |
|
inlinenoexcept |
|
delete |
|
inlinenoexcept |
Stops the callback.
Safe to call more than once and after the client is gone, but not concurrently on the same object. A callback running on another thread of the client's executor is waited for (one on its own executor is not).
|
inlinenoexcept |
Detaches the callback from this handle: it then runs until the client is destroyed.