You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: godot-core/src/task/async_runtime.rs
+3-3
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ use std::panic::AssertUnwindSafe;
12
12
use std::pin::Pin;
13
13
use std::sync::Arc;
14
14
use std::task::{Context,Poll,Wake,Waker};
15
-
use std::thread::{self,LocalKey,ThreadId};
15
+
use std::thread::{self,ThreadId};
16
16
17
17
usecrate::builtin::{Callable,Variant};
18
18
usecrate::private::handle_panic;
@@ -147,7 +147,7 @@ impl TaskHandle {
147
147
148
148
constASYNC_RUNTIME_DEINIT_PANIC_MESSAGE:&str = "The async runtime is being accessed after it has been deinitialized. This should not be possible and is most likely a bug.";
149
149
150
-
thread_local!{
150
+
crate::private::godot_thread_local! {
151
151
/// The thread local is only initialized the first time it's used. This means the async runtime won't be allocated until a task is
0 commit comments