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

channel

concur.channel

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

Type Parameters

Arguments

capacity
 i64
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 a35e75388cc5c7a861f5c2a3f42d121e3aab582a)
last changed: 2026-11-03