AsyncSourceAsyncWorkerPoolBlockingOperationWait

module BlockingOperationWait

Definitions

def blocking_operation_wait(work)

  • public
  • asynchronous

Wait for the given work to be executed.

Signature

public

Since Async v2.19 and Ruby v3.4.

asynchronous

May be non-blocking.

parameter work Proc

The work to execute on a background thread.

returns Object

The result of the work.

Implementation

def blocking_operation_wait(work)
	@worker_pool.call(work)
end

Discussion