codemelted_async library
Provides the ability perform asynchronous programming with flutter in a web environment.
Classes
- CAsyncWorker
- Definition class for a dedicated FIFO thread separated worker / process. Data is queued to this worker via CAsyncWorker.postMessage method and terminated via the CAsyncWorker.terminate method.
- CodeMeltedAsync
- Implements the Async IO API collecting ways of properly doing asynchronous programming with Flutter within a web environment.
Properties
- codemelted_async → CodeMeltedAsync
-
Sets up the namespace for the CodeMeltedAsync object.
final
Typedefs
- CAsyncTask = Future Function([dynamic])
- The task to run as part of the different module async functions.
- CAsyncWorkerListener = void Function(CObject)
- Message handler that receives a JSON object with two fields. "type" which equals either "error" or "data". Then "data" which contains the actual data received.