diff options
Diffstat (limited to 'components/net/async_runtime.rs')
-rw-r--r-- | components/net/async_runtime.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/components/net/async_runtime.rs b/components/net/async_runtime.rs new file mode 100644 index 00000000000..c06d570d9ae --- /dev/null +++ b/components/net/async_runtime.rs @@ -0,0 +1,12 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ + +use std::sync::Mutex; + +use lazy_static::lazy_static; +use tokio::runtime::Runtime; + +lazy_static! { + pub static ref HANDLE: Mutex<Option<Runtime>> = Mutex::new(Some(Runtime::new().unwrap())); +} |