Skip to content

Commit

Permalink
Remove unused trait (paritytech#13682)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkchr authored and breathx committed Apr 22, 2023
1 parent e5a4e14 commit ddda922
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions primitives/core/src/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,19 +181,6 @@ impl TaskExecutorExt {
}
}

/// Runtime spawn extension.
pub trait RuntimeSpawn: Send {
/// Create new runtime instance and use dynamic dispatch to invoke with specified payload.
///
/// Returns handle of the spawned task.
///
/// Function pointers (`dispatcher_ref`, `func`) are WASM pointer types.
fn spawn_call(&self, dispatcher_ref: u32, func: u32, payload: Vec<u8>) -> u64;

/// Join the result of previously created runtime instance invocation.
fn join(&self, handle: u64) -> Vec<u8>;
}

/// Something that can spawn tasks (blocking and non-blocking) with an assigned name
/// and optional group.
#[dyn_clonable::clonable]
Expand Down

0 comments on commit ddda922

Please sign in to comment.