Send is explicitly opted out of here:
.
This is a bit of a problem. For example, after potentially receiving some funds you might like to do:
tokio::spawn(wallet.sync(...).then(|res| info!(the result of the sync was "{:?}", res))
To sync the wallet in the background. This is not possible since the future must be Send to send to tokio::spawn.
It will take some re-engineering of the internals to make this work.
@afilini do you have opinions on how to address this?
Send is explicitly opted out of here:
bdk/macros/src/lib.rs
Line 49 in 43cb033
This is a bit of a problem. For example, after potentially receiving some funds you might like to do:
To sync the wallet in the background. This is not possible since the future must be Send to send to
tokio::spawn.It will take some re-engineering of the internals to make this work.
@afilini do you have opinions on how to address this?