We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
block_in_place
stop
1 parent 3f1c842 commit 176b5c6Copy full SHA for 176b5c6
1 file changed
src/lib.rs
@@ -846,12 +846,14 @@ impl Node {
846
// FIXME: For now, we wait up to 100 secs (BDK_WALLET_SYNC_TIMEOUT_SECS + 10) to allow
847
// event handling to exit gracefully even if it was blocked on the BDK wallet syncing. We
848
// should drop this considerably post upgrading to BDK 1.0.
849
- let timeout_res = runtime.block_on(async {
850
- tokio::time::timeout(
851
- Duration::from_secs(100),
852
- event_handling_stopped_receiver.changed(),
853
- )
854
- .await
+ let timeout_res = tokio::task::block_in_place(move || {
+ runtime.block_on(async {
+ tokio::time::timeout(
+ Duration::from_secs(100),
+ event_handling_stopped_receiver.changed(),
+ )
855
+ .await
856
+ })
857
});
858
859
match timeout_res {
0 commit comments