Deprecate take

This commit is contained in:
Imbus 2024-11-15 09:28:59 +01:00
parent 43374804b3
commit 1f880a1167

View file

@ -25,12 +25,12 @@ public abstract class ActorThread<M> extends Thread {
* milliseconds if none available. Returns null if no message is obtained
* within 'timeout' milliseconds.
*/
@Deprecated
protected M receiveWithTimeout(long timeout) throws InterruptedException {
return q.poll(timeout, TimeUnit.MILLISECONDS);
}
/** Wait for a message continuously */
@Deprecated
protected M take() throws InterruptedException {
return q.take();
}