public interface Channel<T>
| Modifier and Type | Method and Description |
|---|---|
T |
read()
Read a message from a channel, waiting indefinitely for a message to become available.
|
void |
write(T msg)
Write a message to the channel, waiting indefinitely for the message to be stored or read.
|
void write(T msg) throws InterruptedException
msg - The message.InterruptedExceptionT read() throws InterruptedException
InterruptedExceptionCopyright © 2023 LSST. All rights reserved.