send_until


Description:

public abstract Result<void*> send_until (owned G data, int64 end_time)

Sends a value into the channel. This method blocks the thread until the value is sent, the channel is closed, or end_time has passed.

This method is the same as send except there is a timeout.

Errors:

  • ChannelError.CLOSED

If the channel has been closed.

  • ChannelError.TIMEOUT

If end_time has passed.

Parameters:

data

a value

end_time

the monotonic time to wait until

Returns:

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




2022 vala-language.org