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
/// This API is intended to provide a way to ensure that user can react on errors within a `task` independent of other workers state (ie. being busy looping etc).
49
-
/// This means that if the `task` (aka provided Future) will return Err(_), then the task that is awaiting on JoinHandle will be woken up in `SafetyWorker`.
49
+
/// This means that if the `task` (aka provided Future) will return Err(_), then the task that is awaiting on JoinHandle will be woken up in either `SafetyWorker` or regular worker.
50
+
/// Assumption of Use is that the task that is running on SafetyWorker never blocks.
/// This API is intended to provide a way to ensure that user can react on errors within a `task` independent of other workers state (ie. being busy looping etc).
67
-
/// This means that if the `task` (aka provided Future) will return Err(_), then the task that is awaiting on JoinHandle will be woken up in `SafetyWorker`.
68
+
/// This means that if the `task` (aka provided Future) will return Err(_), then the task that is awaiting on JoinHandle will be woken up in either `SafetyWorker` or regular worker.
69
+
/// Assumption of Use is that the task that is running on SafetyWorker never blocks.
/// This API is intended to provide a way to ensure that user can react on errors within a `task` independent of other workers state (ie. being busy looping etc).
91
-
/// This means that if the `task` (aka provided Future) will return Err(_), then the task that is awaiting on JoinHandle will be woken up in `SafetyWorker`.
93
+
/// This means that if the `task` (aka provided Future) will return Err(_), then the task that is awaiting on JoinHandle will be woken up in either `SafetyWorker` or regular worker.
94
+
/// Assumption of Use is that the task that is running on SafetyWorker never blocks.
/// This API is intended to provide a way to ensure that user can react on errors within a `task` independent of other workers state (ie. being busy looping etc).
116
-
/// This means that if the `task` (aka provided Future) will return Err(_), then the task that is awaiting on JoinHandle will be woken up in `SafetyWorker`.
119
+
/// This means that if the `task` (aka provided Future) will return Err(_), then the task that is awaiting on JoinHandle will be woken up in either `SafetyWorker` or regular worker.
120
+
/// Assumption of Use is that the task that is running on SafetyWorker never blocks.
/// This API is intended to provide a way to ensure that user can react on errors within a `task` independent of other workers state (ie. being busy looping etc).
134
-
/// This means that if the `task` (aka provided Future) will return Err(_), then the task that is awaiting on JoinHandle will be woken up in `SafetyWorker`.
138
+
/// This means that if the `task` (aka provided Future) will return Err(_), then the task that is awaiting on JoinHandle will be woken up in either `SafetyWorker` or regular worker.
139
+
/// Assumption of Use is that the task that is running on SafetyWorker never blocks.
135
140
///
136
141
pubfnspawn_from_boxed_on_dedicated<T,E>(
137
142
boxed:FutureBox<SafetyResult<T,E>>,
@@ -158,7 +163,8 @@ where
158
163
///
159
164
/// # Safety
160
165
/// This API is intended to provide a way to ensure that user can react on errors within a `task` independent of other workers state (ie. being busy looping etc).
161
-
/// This means that if the `task` (aka provided Future) will return Err(_), then the task that is awaiting on JoinHandle will be woken up in `SafetyWorker`.
166
+
/// This means that if the `task` (aka provided Future) will return Err(_), then the task that is awaiting on JoinHandle will be woken up in either `SafetyWorker` or regular worker.
167
+
/// Assumption of Use is that the task that is running on SafetyWorker never blocks.
let ptr = TaskRef::into_raw(ptr);// Extracts the pointer from TaskRef not decreasing it's reference count. Since we have a clone here, ref cnt was already increased
60
+
let raw_waker = RawWaker::new(ptr as*const(),&VTABLE);
0 commit comments