class Concurrent::SerializedExecution
def post(executor, *args, &task)
-
(ArgumentError)
- if no task is given
Returns:
-
(Boolean)
- `true` if the task is queued, `false` if the executor
Other tags:
- Yield: - the asynchronous task to perform
Parameters:
-
args
(Array
) -- zero or more arguments to be passed to the task -
executor
(Executor
) -- to be used for this job
def post(executor, *args, &task) posts [[executor, args, task]] true end