WaitForReadT Method (IChannelT, ResultT) |
Suspend coroutine until the channel has an element that can be read.
Namespace:
Demo3D.Native
Assembly:
Demo3D.Core (in Demo3D.Core.dll) Version: 15.0.2.11458
Syntaxpublic static ITask ForRead<T>(
IChannel<T> channel,
Result<T> result
)
Parameters
- channel
- Type: Demo3D.EventQueueIChannelT
The channel to wait until not empty. - result
- Type: Demo3D.NativeResultT
The future result to set the value for once the read is complete.
Type Parameters
- T
- Type of element in channel.
Return Value
Type:
ITaskA task representing the wait for channel read to complete.
See Also