Channel

Channel{T}(sz::Int)

Constructs a Channel that can hold a maximum of sz objects of type T. put! calls on a full channel block till an object is removed with take!.

Other constructors:

  • Channel() - equivalent to Channel{Any}(32)
  • Channel(sz::Int) equivalent to Channel{Any}(sz)

Examples

See Also

Channel, close, put!, take!,

User Contributed Notes

Add a Note

The format of note supported is markdown, use triple backtick to start and end a code block.

*Required Field
Details

Checking you are not a robot: