Liking cljdoc? Tell your friends :D

loom-otp.otplike.gen-server

Compatibility shim providing otplike.gen-server API backed by loom-otp.

Key differences handled:

  • Returns [:ok pid] tuples instead of {:ok pid} maps
  • Uses otplike-style process/! for messaging
  • Integrates with loom-otp.otplike.process async/await
Compatibility shim providing otplike.gen-server API backed by loom-otp.

Key differences handled:
- Returns [:ok pid] tuples instead of {:ok pid} maps
- Uses otplike-style process/! for messaging
- Integrates with loom-otp.otplike.process async/await
raw docstring

callclj

(call server request)
(call server request timeout-ms)

Make synchronous call to gen-server. Returns async value.

Make synchronous call to gen-server. Returns async value.
sourceraw docstring

call!cljmacro

(call! server request)
(call! server request timeout-ms)

Make synchronous call to gen-server.

Make synchronous call to gen-server.
sourceraw docstring

castclj

(cast server request)

Send asynchronous request to gen-server.

Send asynchronous request to gen-server.
sourceraw docstring

get!cljmacro

(get! server)

Get the current state of a gen-server (for debugging).

Get the current state of a gen-server (for debugging).
sourceraw docstring

IGenServercljprotocol

handle-callclj

(handle-call _ request from state)

Handle synchronous call. Returns: [:reply response new-state] | [:reply response new-state timeout] | [:noreply new-state] | [:noreply new-state timeout] | [:stop reason response new-state] | [:stop reason new-state]

Handle synchronous call.
Returns: [:reply response new-state]
       | [:reply response new-state timeout]
       | [:noreply new-state]
       | [:noreply new-state timeout]
       | [:stop reason response new-state]
       | [:stop reason new-state]

handle-castclj

(handle-cast _ request state)

Handle asynchronous cast. Returns: [:noreply new-state] | [:noreply new-state timeout] | [:stop reason new-state]

Handle asynchronous cast.
Returns: [:noreply new-state]
       | [:noreply new-state timeout]
       | [:stop reason new-state]

handle-infoclj

(handle-info _ request state)

Handle other messages. Returns: same as handle-cast

Handle other messages.
Returns: same as handle-cast

initclj

(init _ args)

Initialize server state. Returns: [:ok state] | [:ok state timeout] | [:stop reason]

Initialize server state.
Returns: [:ok state] | [:ok state timeout] | [:stop reason]

terminateclj

(terminate _ reason state)

Called when server is terminating.

Called when server is terminating.
source

replyclj

(reply [mref pid] response)

Send reply to a call.

Send reply to a call.
sourceraw docstring

startclj

(start server)
(start server args)
(start server args options)
(start reg-name server args options)

Start gen-server. Returns async value.

Start gen-server. Returns async value.
sourceraw docstring

start!cljmacro

(start! server)
(start! server args)
(start! server args options)
(start! reg-name server args options)

Start gen-server synchronously. Returns [:ok pid] or [:error reason].

Start gen-server synchronously. Returns [:ok pid] or [:error reason].
sourceraw docstring

(start-link server)
(start-link server args)
(start-link server args options)
(start-link reg-name server args options)

Start gen-server linked to caller. Returns async value.

Start gen-server linked to caller. Returns async value.
sourceraw docstring

start-link!cljmacro

(start-link! server)
(start-link! server args)
(start-link! server args options)
(start-link! reg-name server args options)

Start gen-server linked to caller. Returns [:ok pid] or [:error reason].

Start gen-server linked to caller. Returns [:ok pid] or [:error reason].
sourceraw docstring

(start-link-ns)
(start-link-ns args)
(start-link-ns args options)
(start-link-ns reg-name args options)

Start linked gen-server using current namespace. Returns async.

Start linked gen-server using current namespace. Returns async.
sourceraw docstring

(start-link-ns!)
(start-link-ns! args)
(start-link-ns! args options)
(start-link-ns! reg-name args options)

Start linked gen-server using current namespace.

Start linked gen-server using current namespace.
sourceraw docstring

start-nscljmacro

(start-ns)
(start-ns args)
(start-ns args options)
(start-ns reg-name args options)

Start gen-server using current namespace as implementation. Returns async.

Start gen-server using current namespace as implementation. Returns async.
sourceraw docstring

start-ns!cljmacro

(start-ns!)
(start-ns! args)
(start-ns! args options)
(start-ns! reg-name args options)

Start gen-server using current namespace as implementation.

Start gen-server using current namespace as implementation.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close