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

There should be a setTimeout method in the Futures API #51

Open
maxMidius opened this issue Nov 12, 2017 · 0 comments
Open

There should be a setTimeout method in the Futures API #51

maxMidius opened this issue Nov 12, 2017 · 0 comments

Comments

@maxMidius
Copy link

maxMidius commented Nov 12, 2017

First of all thank you for this very useful package !! May be I am not seeing it but it looks like there is no method in the high level (Futures) API where we can do something like

val to : Future[Timeout] = session.setTimeout( duration=2000)
to.onComplete {
case Sucess(x) => ....
case Failure(y) => ...
}

This is available in the underlying Actor API like this
context.system.scheduler.scheduleOnce( 2 seconds, self, IdleCheckTick)

Immediate Motivation : i wanted to publish something periodically in my akka-wamp app

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