pub fn register_on_externalities(module: Arc<dyn WasmModule>) {
		sp_externalities::with_externalities(
			move |mut ext| {
				if let Some(runtime_spawn) =
					Self::with_externalities_and_module(module.clone(), ext)
				{
					if let Err(e) = ext.register_extension(
						RuntimeSpawnExt(Box::new(runtime_spawn))
					) {
						trace!(
							target: "executor",
							"Failed to register `RuntimeSpawnExt` instance on externalities: {:?}",
							e,
						)
					}
				}
			}
		);
	}
/// Register new `RuntimeSpawnExt` on current externalities.
///
/// This extensions will spawn instances from provided `module`.
Register new `RuntimeSpawnExt` on current externalities.
This extensions will spawn instances from provided `module`.
Register new ` RuntimeSpawnExt ` on current externalities . This extensions will spawn instances from provided ` module ` .
pub fn register_on_externalities(module: Arc<dyn WasmModule>) {
		sp_externalities::with_externalities(
			move |mut ext| {
				if let Some(runtime_spawn) =
					Self::with_externalities_and_module(module.clone(), ext)
				{
					if let Err(e) = ext.register_extension(
						RuntimeSpawnExt(Box::new(runtime_spawn))
					) {
						trace!(
							target: "executor",
							"Failed to register `RuntimeSpawnExt` instance on externalities: {:?}",
							e,
						)
					}
				}
			}
		);
	}
pub fn register_on_externalities ( module : Arc < dyn WasmModule > ) { sp_externalities :: with_externalities ( move | mut ext | { if let Some ( runtime_spawn ) = Self :: with_externalities_and_module ( module . clone ( ) , ext ) { if let Err ( e ) = ext . register_extension ( RuntimeSpawnExt ( Box :: new ( runtime_spawn ) ) ) { trace ! ( target " " " " e ) } } } ) ; }
Register new `RuntimeSpawnExt` on current externalities.
Register new ` RuntimeSpawnExt ` on current externalities .
module
Arc<dyn WasmModule>
module
Arc<dyn WasmModule>