|
faio
faio 公共 C++ 接口参考
|
MPSC 的移动独占接收端。 更多...
Public 成员函数 | |
| receiver (receiver &&other) noexcept | |
| 构造receiver对象。 | |
| void | close () |
| 关闭句柄或通道端点。 | |
| auto | recv () const |
| 从通道接收一个值,空队列时挂起。 | |
| expected< std::optional< T > > | try_recv () const |
| 立即尝试接收或出队。 | |
MPSC 的移动独占接收端。
|
noexcept |
构造receiver对象。
| other | 被复制、移动或比较的同类型对象;移动后源对象按该类型约定变空。 |
| void faio::sync::mpsc< T, S >::receiver::close | ( | ) |
| auto faio::sync::mpsc< T, S >::receiver::recv | ( | ) | const |
从通道接收一个值,空队列时挂起。
| expected< std::optional< T > > faio::sync::mpsc< T, S >::receiver::try_recv | ( | ) | const |
立即尝试接收或出队。