Compatibility shim providing otplike.gen-server API backed by loom-otp.
Key differences handled:
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(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.
(call! server request)(call! server request timeout-ms)Make synchronous call to gen-server.
Make synchronous call to gen-server.
(cast server request)Send asynchronous request to gen-server.
Send asynchronous request to gen-server.
(get! server)Get the current state of a gen-server (for debugging).
Get the current state of a gen-server (for debugging).
(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-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-info _ request state)Handle other messages. Returns: same as handle-cast
Handle other messages. Returns: same as handle-cast
(init _ args)Initialize server state. Returns: [:ok state] | [:ok state timeout] | [:stop reason]
Initialize server state. Returns: [:ok state] | [:ok state timeout] | [:stop reason]
(terminate _ reason state)Called when server is terminating.
Called when server is terminating.
(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.
(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].
(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.
(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].
(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.
(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.
(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.
(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.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |