send method
このChannelへ値を送信する.
Implementation
void send(
T value, {
String message = 'Channel is closed.',
}) {
if (_notify.isClosed) {
throw CancellationException(message);
}
_queue.add(value);
_notify.notify();
}
このChannelへ値を送信する.
void send(
T value, {
String message = 'Channel is closed.',
}) {
if (_notify.isClosed) {
throw CancellationException(message);
}
_queue.add(value);
_notify.notify();
}