102cd1033c
* initial stub for ShutdownToken * attempting to start using new ShutdownManager in NymNode * migrated verloc tasks * added custom shutdown signal registration * integrated legacy task support * migrated additional tasks inside nym-node * removed import thats unused in wasm * apply review comments * windows fixes
20 lines
639 B
Rust
20 lines
639 B
Rust
// Copyright 2022 - Nym Technologies SA <contact@nymtech.net>
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
pub mod cancellation;
|
|
pub mod connections;
|
|
pub mod event;
|
|
pub mod manager;
|
|
#[cfg(not(target_arch = "wasm32"))]
|
|
pub mod signal;
|
|
pub mod spawn;
|
|
|
|
pub use cancellation::{ShutdownDropGuard, ShutdownManager, ShutdownToken};
|
|
pub use event::{StatusReceiver, StatusSender, TaskStatus, TaskStatusEvent};
|
|
pub use manager::{TaskClient, TaskHandle, TaskManager};
|
|
pub use spawn::{spawn, spawn_with_report_error};
|
|
pub use tokio_util::task::TaskTracker;
|
|
|
|
#[cfg(not(target_arch = "wasm32"))]
|
|
pub use signal::{wait_for_signal, wait_for_signal_and_error};
|