Skip to content

call-timed! doesn't return nil #70

@luminusian

Description

@luminusian

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions