nitter
nrc
@nick_r_cameron
1 Nov 2021
Why does Tokio have a Handle concept? Rather than using Arc<Runtime> or something? Just to hide the lifecycle API or are there other considerations?
3
1
1
6
Daniel Silverstone ๐๐๐๐ยฒ ๐ณ๏ธโ๐๐ฌ๐ง
@dsilverstone
1 Nov 2021
Replying to
@nick_r_cameron
Doesn't `Arc<T>` imply a bunch of primitives not necessarily available in `#[no_std]` type situations?
Nov 1, 2021 ยท 10:52 AM UTC
1
nrc
@nick_r_cameron
1 Nov 2021
Replying to
@dsilverstone
Not sure, but could use Rc or something custom but similar
1
Daniel Silverstone ๐๐๐๐ยฒ ๐ณ๏ธโ๐๐ฌ๐ง
@dsilverstone
1 Nov 2021
At which point, isn't that just `Handle` ? :D
2