close(::Channel)

close(Channel)

Closes a channel. An exception is thrown by:

  • put! on a closed channel.
  • take! and fetch on an empty, closed channel.

Examples

julia> file = open("foo", "r+");
# do things 
julia> close(fp);

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: