Skip to content

Commit

Permalink
wip: fix JobObject usage
Browse files Browse the repository at this point in the history
  • Loading branch information
passcod committed Mar 11, 2024
1 parent 7079e4d commit dc723bc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,13 @@ dbg!(status);
- Like command-group.
- Feature: `job-object` (default)

```rust
use windows::Win32::System::Threading::*;
TokioCommandWrap::with_new("watch", |command| { command.arg("ls"); })
.wrap(JobObject)
.spawn()?;
```

### Process group

- Platforms: POSIX (Linux, Mac, BSDs...)
Expand Down Expand Up @@ -156,7 +163,7 @@ This is a shim to allow setting Windows process creation flags with this API, as
use windows::Win32::System::Threading::*;
TokioCommandWrap::with_new("watch", |command| { command.arg("ls"); })
.wrap(CreationFlags(CREATE_NO_WINDOW | CREATE_DETACHED))
.wrap(JobObject::new())
.wrap(JobObject)
.spawn()?;
```

Expand Down

0 comments on commit dc723bc

Please sign in to comment.