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

call-timed! doesn't return nil #70

Open
luminusian opened this issue Jan 27, 2017 · 1 comment
Open

call-timed! doesn't return nil #70

luminusian opened this issue Jan 27, 2017 · 1 comment

Comments

@luminusian
Copy link

The documentation at http://docs.paralleluniverse.co/pulsar/ says,

There’s also a timed version of call!, which gives up and returns nil if the timeout expires.

However,

(actors/call-timed! (actors/spawn (actors/gen-server (reify actors/Server
                                                       (init [_])
                                                       (handle-call [_ _ _ _]
                                                         (Strand/sleep 2)
                                                         :a)))) 1 :ms :b)
CompilerException java.util.concurrent.TimeoutException
@pron
Copy link
Contributor

pron commented Feb 28, 2017

You're right, but the tests assume an exception. Which makes more sense to you and why?

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

2 participants