Discover Packages
github.com/grevych/gobox
examples
async_task
package
Version:
v0.0.0-...-21d585c
Opens a new window with list of versions in this module.
Published: Dec 6, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
AsyncTask is an asynchronous task runner for functions of type Task.
NewAsyncTask creates a new instance of AsyncTask.
Run executes a number of asynchronous tasks in loop and blocks
until a shutdown signal is triggered, or the parent context is canceled. The
number of executed tasks is defined by the replicas parameter.
Task represents a task that needs to be always running.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.