Skip to content

Conversation

@rogeralsing
Copy link
Contributor

Another hotfix for async await.
Turns out when using the Suspend behavior and awaiting tasks that complete on IO completion ports, e.g. Task.Delay or IO operations, the current context was lost.
This PR fixes this.

@rogeralsing
Copy link
Contributor Author

Ty @nvivo for reporting this stuff

@rogeralsing
Copy link
Contributor Author

Do not merge until @nvivo confirms that this solves the issues in his app.

@nvivo
Copy link
Contributor

nvivo commented Apr 13, 2015

The fix seems to work. Didn't see any crashes in my app anymore using ReceiveActor and the async Receive handler.

rogeralsing added a commit that referenced this pull request Apr 13, 2015
…otfix

Hotfix async await when awaiting IO completion port based tasks
@rogeralsing rogeralsing merged commit 10b8fd7 into akkadotnet:dev Apr 13, 2015
@rogeralsing rogeralsing deleted the async-await-resume-mailbox-hotfix branch April 19, 2015 16:18
This was referenced Apr 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants