co.paralleluniverse.pulsar.behaviors documentation

Pulsar 

add-child

(add-child supervisor name f mode max-restarts duration unit shutdown-deadline-millis)
Adds an actor to a supervisor

call

(call gs m)(call gs m & args)
Makes a synchronous call to a gen-server and returns the response

call-timed

(call-timed gs timeout unit m)(call-timed gs timeout unit m & args)
Makes a synchronous call to a gen-server and returns the response

cast

(cast gs m)(cast gs m & args)
Makes an asynchronous call to a gen-server

create-actor

macro

(create-actor :name? :mailbox-size? :lifecycle-handler? f & args)
Creates (but doesn't start) a new actor

gen-server

macro

(gen-server :name? :timeout? :mailbox-size? server & args)
Creates (but doesn't start) a new gen-server

get-child

(get-child sup id)
Returns a supervisor's child by id

remove-and-terminate-child

(remove-and-terminate-child supervisor name)
Removes an actor from a supervisor and terminates the actor

remove-child

(remove-child supervisor name)
Removes an actor from a supervisor

reply

(reply to id res)
Replies to a message sent to the current gen-server

reply-error

(reply-error to id error)
Replies with an error to a message sent to the current gen-server

set-timeout

(set-timeout timeout unit)
Sets the timeout for the current gen-server

shutdown

(shutdown gs)
Asks a gen-server or a supervisor to shut down

stop

(stop)
Stops the current gen-server

supervisor

(supervisor name restart-strategy init)(supervisor restart-strategy init)
Creates (but doesn't start) a new supervisor