Variables

capacity:GoInt

read onlylength:GoInt

Methods

__close__():Void

inline__get__():T

@:value({ selectBool : false })__isGet__(selectBool:Bool = false):Bool

@:value({ selectBool : false })__isSend__(selectBool:Bool = false):Bool

__reset__(this:ChanData<T>):Void

Chan is a Go channel in Haxe Channels are used in a goroutine context to send and get data Channel are by default blocking for sending, waiting until a get on the other side is called The syntax for channels is different for Go and Haxe: Haxe: c.get Go: <- c Haxe: c.send(x) Go: c <- x

__send__(value:T):Void

__smartGet__():{_1:Bool, _0:T}

Spec: The value of ok is true if the value received was delivered by a successful send operation to the channel, or false if it is a zero value generated because the channel is closed and empty.

inlineiterator():ChanIterator<T>