qubit-executor 0.3.4

Executor abstractions, task handles, and basic executor implementations for Qubit Rust libraries
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.
 *
 ******************************************************************************/
use super::TaskResult;

/// Result of a non-blocking attempt to retrieve a task result.
pub enum TryGet<H, R, E> {
    /// The task result is ready.
    Ready(TaskResult<R, E>),
    /// The task has not completed and the handle is returned to the caller.
    Pending(H),
}