minus-squareliangchun@lemmy.worldOPtoRust Lang@lemmyrs.org•Sleep in Async ContextslinkfedilinkEnglisharrow-up1·1 year agoTo be honest it’s a bit strange to me, but that’s how the interface works. The consumer is expected to poll via the interface until a TOperationState::FINISHED_STATE is returned, which means that the query is “done”. linkfedilink
liangchun@lemmy.world to Rust Lang@lemmyrs.orgEnglish · 1 year agoSleep in Async Contextsplus-squareliangchun.meexternal-linkmessage-square2fedilinkarrow-up113arrow-down10
arrow-up113arrow-down1external-linkSleep in Async Contextsplus-squareliangchun.meliangchun@lemmy.world to Rust Lang@lemmyrs.orgEnglish · 1 year agomessage-square2fedilink
To be honest it’s a bit strange to me, but that’s how the interface works. The consumer is expected to poll via the interface until a
TOperationState::FINISHED_STATE
is returned, which means that the query is “done”.