From 1f880a1167998d27e140dec721d9b8dfde87a705 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Fri, 15 Nov 2024 09:28:59 +0100 Subject: [PATCH] Deprecate take --- wash/src/actor/ActorThread.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wash/src/actor/ActorThread.java b/wash/src/actor/ActorThread.java index bb231a2..18683bb 100644 --- a/wash/src/actor/ActorThread.java +++ b/wash/src/actor/ActorThread.java @@ -25,12 +25,12 @@ public abstract class ActorThread 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(); }