1
0
Fork 0
forked from wry/wry

all: use tracy for tracing

This commit is contained in:
Julian Orth 2024-09-15 18:08:54 +02:00
parent 50186e764e
commit ccad3cf0fb
56 changed files with 647 additions and 171 deletions

View file

@ -14,9 +14,16 @@ use {
};
pub async fn client(data: Rc<Client>) {
let mut recv = data.state.eng.spawn(receive(data.clone())).fuse();
let mut recv = data
.state
.eng
.spawn("client receive", receive(data.clone()))
.fuse();
let mut shutdown = data.shutdown.triggered().fuse();
let _send = data.state.eng.spawn2(Phase::PostLayout, send(data.clone()));
let _send = data
.state
.eng
.spawn2("client send", Phase::PostLayout, send(data.clone()));
select! {
_ = recv => { },
_ = shutdown => { },