Deprecate take
This commit is contained in:
parent
43374804b3
commit
1f880a1167
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue