package
0.0.0-20231019115643-d76522940a9b
Repository: https://github.com/alacrity-engine/core.git
Documentation: pkg.go.dev
# Functions
NewAsynchronousProcess creates a new asynchronous process with the progress initially set to 0.
NewErrorTaskAlreadyStarted returns a new error of type ErrorTaskAlreadyStarted,.
NewErrorAsynchronousProcessNotComplete creates a new error that is returned when the caller tries to access the result of the asynchronous process when it's not complete yet.
NewErrorStoppedTaskNotExists returns a new error of type ErrorStoppedTaskNotExists.
NewErrorTaskAlreadyExists creates a new error of type ErrorTaskAlreadyExists.
NewErrorTaskAlreadyStarted returns a new error of type ErrorTaskAlreadyStarted,.
NewErrorTaskNotExists creates a new error of type ErrorTaskNotExists.
NewTaskManager returns a new task manager to hold active tasks performed through frames.
# Constants
AsynchronousProcessProgressBufferSize is a capacity of the buffer storing progress notifications about the process.
# Structs
AsynchronousProcess is a process that takes a lot of time to complete and its progress is tracked.
ErrorAfterTaskAlreadyStarted is raised when the task with the specified name has already been started.
ErrorAsynchronousProcessNotComplete is returned when the caller tries to access the result of the asynchronous process when it's not complete yet.
ErrorStoppedTaskNotExists is raised when there's no stopped task with the specified name.
ErrorTaskAlreadyExists is raised when the task with the specified name already exists in the task manager.
ErrorTaskAlreadyStarted is raised when the task with the specified name has already been started.
ErrorTaskNotExists is returned when the task with the specified name doesn't exist in the task manager.
No description provided by the author