package fiber
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Module Fiber.Pool
Source
Pool is used to submit asynchronous tasks without waiting for their completion.
running pool
returns whether it's possible to submit tasks to pool
task pool ~f
submit f
to be done in pool
. Errors raised pool
will not be raised in the current fiber, but inside the Pool.run
fiber.
If running pool
returns false
, this function will raise a Code_error
.
stop pool
stops the pool from receiving new tasks. After this function is called, task pool ~f
will fail to submit new tasks.
Note that stopping the pool does not prevent already queued tasks from running.