fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

channel

concur.channel

create a Channel of the given type and given capacity
Precondition
pre
  debug: capacity >= 0

Type Parameters

T:Any[src]

Arguments

capacity i64[src]
capacity of this channel.

May be 0 to create a channel that always blocks on
`infix <-` (`send`) until a corresponding `prefix <-` (`receive`)
is performed by another thread.

A value larger than 0 creates a channel with that capacity, i.e.,
`infix <-` (`send`) will block only if the number of calls to
`infix <-` (`send`) exceeds the number of corresponding `prefix <-`
(`receive`) by more than `capacity`.
0.099dev (GIT hash e2d5298d8107bb5fe79600fdb06a49bc75756344)
last changed: 2026-11-23