Click or drag to resize

WaitForReadT(IChannelT, ResultT) Method

Suspend coroutine until the channel has an element that can be read.

Namespace: Demo3D.Native
Assembly: Demo3D.Core (in Demo3D.Core.dll) Version: 19.00.00
Syntax
C#
public static ITask ForRead<T>(
	IChannel<T> channel,
	Result<T> result
)

Parameters

channel  IChannelT
The channel to wait until not empty.
result  ResultT
The future result to set the value for once the read is complete.

Type Parameters

T
Type of element in channel.

Return Value

ITask
A task representing the wait for channel read to complete.
See Also