rust-lang / jobserver-rs

Apache License 2.0
68 stars 42 forks source link

Drop tokens without releasing them #21

Closed Mark-Simulacrum closed 4 years ago

Mark-Simulacrum commented 4 years ago

This is useful when dealing with the helper thread interface but wanting to release the tokens via release_raw at a later point.

Mark-Simulacrum commented 4 years ago

I decided that the unsafe code wasn't worth it and just added a bool to disable the destructor, just seems easier and all around nicer.

alexcrichton commented 4 years ago

👍