Class: Async::Bus::Controller
- Inherits:
-
Object
- Object
- Async::Bus::Controller
- Defined in:
- lib/async/bus/controller.rb
Overview
Base class for controller objects designed to be proxied over Async::Bus.
Controllers provide an explicit API for remote operations, avoiding the confusion that comes from proxying generic objects like Array or Hash.
Controllers are automatically proxied when serialized if registered as a reference type in the Wrapper:
Wrapper.new(connection, reference_types: [Async::Bus::Controller])
This allows controller methods to return other controllers and have them automatically proxied.