pub fn start(&self, size: usize) -> Result<(), Error> {
		let mut stp = STATIC_THREAD_POOL.write().map_err(|e| {
			let error: Error = ErrorKind::InternalError(format!(
				"static thread pool lock error: {}",
				e.to_string()
			))
			.into();
			error
		})?;

		let tp = stp.get_mut(&self.id);
		match tp {
			Some(tp) => tp.start(size)?,
			None => {
				return Err(ErrorKind::InternalError(format!(
					"static thread pool id = {} doesn't exist error",
					self.id
				))
				.into())
			}
		}

		Ok(())
	}
/// Start the static thread pool.
///
/// Start the thread pool with the specified size. After calling this function,
/// [`StaticThreadPool.execute`] may be called to execute futures.
///
/// * `size` - The number of threads for this thread pool to start.
Start the static thread pool.
Start the thread pool with the specified size. After calling this function,
[`StaticThreadPool.execute`] may be called to execute futures.

`size` - The number of threads for this thread pool to start.
Start the static thread pool . Start the thread pool with the specified size . After calling this function [ ` StaticThreadPool . execute ` ] may be called to execute futures . ` size ` - The number of threads for this thread pool to start .
pub fn start(&self, size: usize) -> Result<(), Error> {
		let mut stp = STATIC_THREAD_POOL.write().map_err(|e| {
			let error: Error = ErrorKind::InternalError(format!(
				"static thread pool lock error: {}",
				e.to_string()
			))
			.into();
			error
		})?;
		let tp = stp.get_mut(&self.id);
		match tp {
			Some(tp) => tp.start(size)?,
			None => {
				return Err(ErrorKind::InternalError(format!(
					"static thread pool id = {} doesn't exist error",
					self.id
				))
				.into())
			}
		}
		Ok(())
	}
pub fn start ( & self , size : usize ) -> Result < ( ) , Error > { let mut stp = STATIC_THREAD_POOL . write ( ) . map_err ( | e | { let error : Error = ErrorKind :: InternalError ( format ! ( " " e to_string ( ) ) ) . into ( ) ; error } ) ? ; let tp = stp . get_mut ( & self . id ) ; match tp { Some ( tp ) => tp . start ( size ) ? , None => { return Err ( ErrorKind :: InternalError ( format ! ( " " self id ) ) . into ( ) ) } } Ok ( ( ) ) }
Start the static thread pool.
Start the static thread pool .
&self
size
usize
&self
size
usize