Package org.daiitech.naftah.builtin.utils.concurrent
package org.daiitech.naftah.builtin.utils.concurrent
This is the base package of Naftah programming language concurrency utilities and API.
- Author:
- Chakib Daii
-
ClassDescriptionActor<T>An abstract actor implementation for message-driven concurrency.Awaitable<T>Represents an asynchronous or deferred computation whose result can be awaited.Channel<T>A simple thread-safe channel for communicating between threads.A thread wrapper that ensures a cleanup action is executed after the thread finishes, regardless of whether it terminates normally or due to an exception.An extension of
InheritableThreadLocalthat allows: Specifying aSupplierto provide the initial value. Optionally defining aFunctionto copy the value for child threads.Task<T>Represents an asynchronous task that executes within a givenDefaultContext.