Liking cljdoc? Tell your friends :D

csp-clj.protocols.channel

Core channel protocol defining the fundamental operations for all channel implementations in csp-clj.

This protocol abstracts over buffered and unbuffered channels, providing a uniform interface for:

  • Synchronous/asynchronous value transfer
  • Channel lifecycle management
  • Timeout support for blocking operations

Thread Safety: All methods in this protocol are thread-safe and may be called concurrently from multiple virtual threads.

Core channel protocol defining the fundamental operations for all
channel implementations in csp-clj.

This protocol abstracts over buffered and unbuffered channels,
providing a uniform interface for:
- Synchronous/asynchronous value transfer
- Channel lifecycle management
- Timeout support for blocking operations

Thread Safety:
All methods in this protocol are thread-safe and may be called
concurrently from multiple virtual threads.
raw docstring

Channelcljprotocol

Protocol for channel operations.

Protocol for channel operations.

close!clj

(close! ch)

closed?clj

(closed? ch)

put!clj

(put! ch value)
(put! ch value timeout-ms)

take!clj

(take! ch)
(take! ch timeout-ms)
raw 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