Selector resources.

ISelectable

Available since version 1.0 (view source)

not referred automatically

PROTOCOL with methods -register!, -deregister!

A protocol for resources that can be registered in a selector.

See also: register!, deregister!

-register!

Available since version 1.0 (view source)

not referred automatically

Usage:
  • (-register! this selector interests user-map)

Type signature:
  • (Any ⨯ SelectorResource ⨯ IRed ⨯ {}) → nil

Registers this resource with selector, using interests collection of keywords as an interest set. user-map must be returned by the selector when the resource will be ready for one of given interest operations. Returns nil. Must throws when resource is not in non-blocking mode.

See also: ISelectable

-deregister!

Available since version 1.0 (view source)

not referred automatically

Usage:
  • (-deregister! this selector)

Type signature:
  • (Any ⨯ SelectorResource) → nil

Deregisters this resource from selector. Returns nil.

See also: ISelectable