Suspend coroutine until the channel can accept the write.
Namespace: Demo3D.NativeAssembly: Demo3D.Core (in Demo3D.Core.dll) Version: 19.00.00
Syntaxpublic static ITask ForWrite<T>(
IChannel<T> channel,
T obj
)
Parameters
- channel IChannelT
- The channel to wait until not full.
- obj T
- The object to add to the channel.
Type Parameters
- T
- Type of element in channel.
Return Value
ITaskA task representing the wait for channel write to complete.
See Also