pub fn execute<F>(&self, f: F) -> Result<(), Error>
	where
		F: Future<Output = ()> + Send + Sync + 'static,
	{
		let stp = crate::lockr!(STATIC_THREAD_POOL);

		let tp = stp.get(&self.id);
		match tp {
			Some(tp) => tp.execute(f)?,
			None => {
				return Err(ErrorKind::InternalError(format!(
					"static thread pool id = {} doesn't exist error",
					self.id
				))
				.into())
			}
		}
		Ok(())
	}
/// Execute the specified future.
///
/// The specified future will be executed in one of the thread pool's threads.
///
/// * `f` - The future to execute.
Execute the specified future.
The specified future will be executed in one of the thread pool's threads.

`f` - The future to execute.
Execute the specified future . The specified future will be executed in one of the thread pool ' s threads . ` f ` - The future to execute .
pub fn execute<F>(&self, f: F) -> Result<(), Error>
	where
		F: Future<Output = ()> + Send + Sync + 'static,
	{
		let stp = crate::lockr!(STATIC_THREAD_POOL);
		let tp = stp.get(&self.id);
		match tp {
			Some(tp) => tp.execute(f)?,
			None => {
				return Err(ErrorKind::InternalError(format!(
					"static thread pool id = {} doesn't exist error",
					self.id
				))
				.into())
			}
		}
		Ok(())
	}
pub fn execute < F > ( & self , f : F ) -> Result < ( ) , Error > where F : Future < Output = ( ) > + Send + Sync + ' static , { let stp = crate :: lockr ! ( STATIC_THREAD_POOL ) ; let tp = stp . get ( & self . id ) ; match tp { Some ( tp ) => tp . execute ( f ) ? , None => { return Err ( ErrorKind :: InternalError ( format ! ( " " self id ) ) . into ( ) ) } } Ok ( ( ) ) }
Execute the specified future.
Execute the specified future .
&self
f
F
&self
f
F