summaryrefslogtreecommitdiff
path: root/core/ops.rs
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2020-01-22 02:01:10 +0900
committerRy Dahl <ry@tinyclouds.org>2020-01-21 12:01:10 -0500
commit9de8178c9b9bc21cc880ea81f163118408cc6c46 (patch)
treeec0e7f46868959bf5132d562f9a2258d2437176a /core/ops.rs
parentecd1d3abb0cae9c7cbc1330cbaa035a5786e94d7 (diff)
feat: add AsyncUnref ops (#3721)
This is in order to support features like signal handlers, which shouldn't prevent the program from exiting.
Diffstat (limited to 'core/ops.rs')
-rw-r--r--core/ops.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/ops.rs b/core/ops.rs
index 7ed142682..e0bdb0184 100644
--- a/core/ops.rs
+++ b/core/ops.rs
@@ -21,6 +21,9 @@ pub type OpResult<E> = Result<Op<E>, E>;
pub enum Op<E> {
Sync(Buf),
Async(OpAsyncFuture<E>),
+ /// AsyncUnref is the variation of Async, which doesn't block the program
+ /// exiting.
+ AsyncUnref(OpAsyncFuture<E>),
}
pub type CoreError = ();