We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ceab906 commit 622dc44Copy full SHA for 622dc44
futures-core/src/executor.rs
@@ -16,7 +16,7 @@ pub trait Executor {
16
///
17
/// The executor may be unable to spawn tasks, either because it has
18
/// been shut down or is resource-constrained.
19
- fn spawn_obj(&mut self, task: TaskObj) -> Result<(), SpawnError<TaskObj>>;
+ fn spawn_obj(&mut self, task: TaskObj) -> Result<(), SpawnObjError>;
20
21
/// Determine whether the executor is able to spawn new tasks.
22
@@ -52,10 +52,10 @@ impl SpawnErrorKind {
52
53
/// The result of a failed spawn
54
#[derive(Debug)]
55
-pub struct SpawnError<T> {
+pub struct SpawnObjError {
56
/// The kind of error
57
pub kind: SpawnErrorKind,
58
59
/// The task for which spawning was attempted
60
- pub task: T,
+ pub task: TaskObj,
61
}
0 commit comments