Begins shutting down the pool and prevents new submissions.
shutdown policy for queued work
a future that resolves when shutdown completes
SignalconnectSignalconnect_SignalemitSince 1.2get_Since 1.2submitQueues blocking work to run on one of the pool's reusable threads.
The provided thread_name is applied to the returned future using
dex_future_set_static_name() so that tracing and debugging tools can
identify the work item. It does not rename the underlying OS worker thread.
the name to use for debugging the returned future
the function to run on a pooled thread
a future that resolves when the work completes
StaticnewReleases a reference on the given object, and decreases its reference count by one.
If it was the last reference, the resources associated to the instance are freed.
Dex.ThreadPool is a thread pool for managing native OS threads similar to GLib.ThreadPool.
The threads managed by Dex.ThreadPool do not contain a Dex.Scheduler which means that you cannot await futures or schedule Dex.Block from a worker thread.
Threads are created up-front from Dex.ThreadPool.new.
Dex.ThreadPool primarily exists for situations where you are using blocking external libraries and want to avoid calling Dex.thread_spawn without any sort of queuing or bounding on the permitted concurrency.
Since
1.2