From 3295aabf6747d37598acf62a63bc9d9071e50895 Mon Sep 17 00:00:00 2001 From: Bo Yao Date: Mon, 24 Feb 2020 12:50:49 -0800 Subject: [PATCH] Update doc and changes.md --- actix-rt/CHANGES.md | 4 ++++ actix-rt/src/system.rs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/actix-rt/CHANGES.md b/actix-rt/CHANGES.md index 7c7ad63d..a7792455 100644 --- a/actix-rt/CHANGES.md +++ b/actix-rt/CHANGES.md @@ -1,5 +1,9 @@ # Changes +## [TBD] - [TBD] + +- Expose `System::is_set` to check if current system is running + ## [1.0.0] - 2019-12-11 * Update dependencies diff --git a/actix-rt/src/system.rs b/actix-rt/src/system.rs index f77bcd4d..1e5beec7 100644 --- a/actix-rt/src/system.rs +++ b/actix-rt/src/system.rs @@ -79,7 +79,7 @@ impl System { }) } - /// Check current system is running. + /// Check if current system is running. pub fn is_set() -> bool { CURRENT.with(|cell| cell.borrow().is_some()) }