#Problem with static closure lifetimes

3 messages · Page 1 of 1 (latest)

stoic agate
#

i think the two problems is that you borrow orders before the closure, and that client is borrowed when used in tokio::spawn

zenith hemlock
stoic agate
#

you need to move arc into closure and then lock it and borrow