arty 0.4.0

Single-threaded, thread-aware application runtime.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

use std::any::Any;

/// Represents the runtime's internal view over the result of executing a task.
///
/// Join handles convert this transport into `Result<R, JoinError>`.
///
/// A dropped sender represents shutdown cancellation or rejection.
pub(in crate::task) enum TaskResult<R> {
    Completed(R),
    Panicked(Box<dyn Any + Send + 'static>),
}