Aaronontheweb on dev
Fix #4083 - Endpoint receive bu… (compare)
Aaronontheweb on dev
Convert to ImmutableHashSet for… (compare)
something which might get improved by akka or are you bound by the TPL impl of Microsoft?
We are bound by the use of an ambient context backed by ThreadStatic
field. This sort of things just won't work well with async/await, that's why a custom TaskScheduler
is used. And that TaskScheduler
don't execute stuff on threadpool like default does, it messes up with akka's internals to pause actor's mailbox and executes async callbacks on akka's dispatcher. That's why you shouldn't use it for anything other than I/O operations that absolutely have to be completed before processing the next message.
Update
message back to them. I know that this is bad, and when akka streams will be ready to be used, we'll change persistent views to use streaming, but until then we have to stick with that.