| ... | @@ -333,7 +333,7 @@ pub const SpawnError = error{ | ... | @@ -333,7 +333,7 @@ pub const SpawnError = error{ |
| 333 | }; | 333 | }; |
| 334 | | 334 | |
| 335 | /// Spawns a new thread which executes `function` using `args` and returns a handle to the spawned thread. | 335 | /// Spawns a new thread which executes `function` using `args` and returns a handle to the spawned thread. |
| 336 | /// `config` can be used as hints to the platform for now to spawn and execute the `function`. | 336 | /// `config` can be used as hints to the platform for how to spawn and execute the `function`. |
| 337 | /// The caller must eventually either call `join()` to wait for the thread to finish and free its resources | 337 | /// The caller must eventually either call `join()` to wait for the thread to finish and free its resources |
| 338 | /// or call `detach()` to excuse the caller from calling `join()` and have the thread clean up its resources on completion. | 338 | /// or call `detach()` to excuse the caller from calling `join()` and have the thread clean up its resources on completion. |
| 339 | pub fn spawn(config: SpawnConfig, comptime function: anytype, args: anytype) SpawnError!Thread { | 339 | pub fn spawn(config: SpawnConfig, comptime function: anytype, args: anytype) SpawnError!Thread { |