qubit-lock 0.8.1

Lock utilities library providing synchronous, asynchronous, and monitor-based locking primitives
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*******************************************************************************
 *
 *    Copyright (c) 2025 - 2026 Haixing Hu.
 *
 *    SPDX-License-Identifier: Apache-2.0
 *
 *    Licensed under the Apache License, Version 2.0.
 *
 ******************************************************************************/
//! Boxed future type used by asynchronous monitor traits.

use std::{
    future::Future,
    pin::Pin,
};

/// Sendable boxed future returned by asynchronous monitor operations.
pub type AsyncMonitorFuture<'a, T> = Pin<Box<dyn Future<Output = T> + Send + 'a>>;