Enhancement: create ActorTaskScheduler overload that schedules Task to dispatcher without blocking current actor #4363
Open
Description
Version: 1.4.3 and later
An advanced feature - right now we support the ability to schedule a Task
onto the current actor's dispatcher using the ActorTaskScheduler
:
akka.net/src/core/Akka/Dispatch/ActorTaskScheduler.cs
Lines 130 to 164 in 03341fc
One of the side effects of this method is that it blocks the current actor in order to run that Task
.
I think it'd be worthwhile to add an overload that allows a task to be scheduled onto the current dispatcher, without impacting the current actor's ability to process its mailbox. That could make for some interesting scenarios in areas like IOT, where users often need to run actors on pinned or dedicated thread dispatchers.