Creates a new default tokio multi-thread [Runtime](tokio::runtime::Runtime) with all features enabled.
(&self)
| 38 | /// Creates a new default tokio multi-thread [Runtime](tokio::runtime::Runtime) with all |
| 39 | /// features enabled. |
| 40 | pub fn tokio_runtime(&self) -> Result<tokio::runtime::Runtime, std::io::Error> { |
| 41 | let mut builder = tokio::runtime::Builder::new_multi_thread(); |
| 42 | if let Some(size) = self.thread_stack_size { |
| 43 | builder.thread_stack_size(size); |
| 44 | } |
| 45 | builder.enable_all().build() |
| 46 | } |
| 47 | |
| 48 | /// Installs SIGTERM + SIGINT handlers that cancel the given token. |
| 49 | /// |
no test coverage detected