recv


Description:

public abstract Result<G> recv ()

Receives a value from the channel. This method blocks the thread until a value is received or the channel is closed and has no more data.

If the channel is empty, not unbuffered, and not closed, blocks until there is a value in the channel.

If the channel is unbuffered, waits for a send operation.

Errors:

  • ChannelError.CLOSED

If the channel has been closed and no more data.

Returns:

the result which holds a value if succeeded, or an error if failed.




2022 vala-language.org