Class: Plushie::Event::Async

Inherits:
Data
  • Object
show all
Defined in:
lib/plushie/event.rb

Overview

Async command result events. Triggered when a Command.async lambda completes execution.

Examples:

Async result

in Event::Async[tag: :fetch_data, result:]

Instance Attribute Summary collapse

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result

Returns:

  • (Object)

    the current value of result



352
353
354
# File 'lib/plushie/event.rb', line 352

def result
  @result
end

#result [Object] return value of the async lambda([Object]) ⇒ Object (readonly)

Async command result events. Triggered when a Command.async lambda completes execution.

Examples:

Async result

in Event::Async[tag: :fetch_data, result:]


352
# File 'lib/plushie/event.rb', line 352

Async = Data.define(:tag, :result)

#tagObject (readonly)

Returns the value of attribute tag

Returns:

  • (Object)

    the current value of tag



352
353
354
# File 'lib/plushie/event.rb', line 352

def tag
  @tag
end

#tag [Symbol] the tag specified in Command.async([Symbol]) ⇒ Object (readonly)

Async command result events. Triggered when a Command.async lambda completes execution.

Examples:

Async result

in Event::Async[tag: :fetch_data, result:]


352
# File 'lib/plushie/event.rb', line 352

Async = Data.define(:tag, :result)