Skip to content
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

F# API: added mailbox.Defer #682

Merged
merged 1 commit into from
Feb 27, 2015
Merged

Conversation

Horusiath
Copy link
Contributor

I've created a new method: maiblox.Defer (unit -> unit), which takes a function and defers it's execution until actor's PostStop will be invoked. This way we may specify a set of operations, which have to be ensured to be executed no matter how actor will end it's lifecycle.

This is especially important when dealing with IDisposable resources.

cc #677

rogeralsing added a commit that referenced this pull request Feb 27, 2015
@rogeralsing rogeralsing merged commit 07a0216 into akkadotnet:dev Feb 27, 2015
@Horusiath Horusiath deleted the fsapi-defer-fun branch March 23, 2016 14:06
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