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

PersistenceApi#fromFuture (or similar) #15

Open
dilation opened this issue Aug 2, 2017 · 0 comments
Open

PersistenceApi#fromFuture (or similar) #15

dilation opened this issue Aug 2, 2017 · 0 comments

Comments

@dilation
Copy link
Member

dilation commented Aug 2, 2017

If possible, we should create a method on PersistenceApi like this:

def fromFuture[A](f: Future[A], sync: Boolean = false): Proc[A]

The hard part seems to be, that when sync is true, no messages should be delivered until the Future finishes. (Also, maybe we'd need a timeout too, in case the Future never finishes.)

The use case for this is described here: https://gitter.im/nokia/akka-typed-persistence?at=5980c287f5b3458e30a0138e

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

No branches or pull requests

1 participant