module Onyx::EDA::Actor

Overview

A module which turns an object into event actor. It is included into Subscriber and Consumer modules.

Direct including types

Defined in:

onyx-eda/actor.cr

Instance Method Summary

Instance Method Detail

def subscribe(channel : Onyx::EDA::Channel) : self #

Subscribe to a channel. Raises if this actor is already subsribed to this channel. Returns self.


[View source]
def unsubscribe(channel : Onyx::EDA::Channel) : self #

Unsubscribe from a channel. Raises if this actor is already unsubscribed or not subscribed to this channel yet. Return self.


[View source]