From 4b0808de643eada0cd3a36b1738e186368c76a63 Mon Sep 17 00:00:00 2001 From: Bo Yao Date: Fri, 21 Feb 2020 17:44:51 -0800 Subject: [PATCH] Expose is_set --- actix-rt/src/system.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actix-rt/src/system.rs b/actix-rt/src/system.rs index 383471cd..f77bcd4d 100644 --- a/actix-rt/src/system.rs +++ b/actix-rt/src/system.rs @@ -79,8 +79,8 @@ impl System { }) } - /// Set current running system. - pub(crate) fn is_set() -> bool { + /// Check current system is running. + pub fn is_set() -> bool { CURRENT.with(|cell| cell.borrow().is_some()) }