arty 0.6.0

Thread-aware async runtime that keeps each task on one worker thread.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

//! Blocking callback panic handling.

use std::task::Waker;

/// Selects how a contained blocking-callback panic affects the runtime.
///
/// The shutdown variant wakes the associated async worker so it can coordinate
/// shutdown with the other workers.
#[derive(Clone, Debug)]
pub(crate) enum PanicPolicy {
    Ignore,
    Shutdown(Waker),
}