Skip to main content

Module shared_runtime

Module shared_runtime 

Source
Expand description

SharedRuntime for managing [PausableWorker]s across fork boundaries.

This module provides a SharedRuntime that manages a tokio runtime and allows spawning PausableWorkers on it. It also provides hooks for safely handling fork operations by pausing workers before fork and restarting them appropriately in parent and child processes.

Structs§

SharedRuntime
A shared runtime that manages PausableWorkers and provides fork safety hooks.
WorkerHandle
Handle to a worker registered on a SharedRuntime.

Enums§

SharedRuntimeError
Errors that can occur when using SharedRuntime.
WorkerHandleError