-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix Ask deadlock #2 #3120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Ask deadlock #2 #3120
Conversation
src/core/Akka/Actor/Futures.cs
Outdated
@@ -128,10 +128,18 @@ internal static IActorRefProvider ResolveProvider(ICanTell self) | |||
return null; | |||
} | |||
|
|||
private const int RunContinuationsAsynchronously = 64; | |||
private static bool isRunContinuationsAsynchronouslyAvailable = Enum.IsDefined(typeof(TaskCreationOptions), RunContinuationsAsynchronously); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@0x53A mark as readonly
@0x53A missing a public API approval: http://getakka.net/community/public-api-changes.html |
@0x53A and the other PR we re-opened, should still look at merging that in addition to this one, correct? |
This one supersedes the other one - you can decide which one to take (this branch is even based on the other one, but I would rebase it before you merge) Edit: rebased |
create TaskCompletionSource with RunContinuationsAsynchronously; otherwise wrap .TrySetResult in Task.Run
f15f6dd
to
031273c
Compare
#2548