import com.google.common.annotations.VisibleForTesting;
import java.util.Collection;
import java.util.Optional;
+import java.util.concurrent.Executor;
import java.util.function.Consumer;
import java.util.function.LongSupplier;
import org.eclipse.jdt.annotation.NonNull;
*/
ActorRef getActor();
+ /**
+ * Return an Executor which is guaranteed to run tasks in the context of {@link #getActor()}.
+ *
+ * @return An executor.
+ */
+ @NonNull Executor getExecutor();
+
/**
* The akka Cluster singleton for the actor system if one is configured.
*