Async::Actor SourceAsyncActorProxy

class Proxy

Nested

Definitions

def method_missing(*arguments, return_value: :wait, **options, &block)

Signature

parameter return_value Symbol

One of :ignore, :promise or :wait.

Implementation

def method_missing(*arguments, return_value: :wait, **options, &block)
	unless return_value == :ignore
		result = Variable.new
	end
	
	@queue.push([arguments, options, block, result])
	
	if return_value == :promise
		return result
	else
		return result&.get
	end
end