Skip to content

Commit f0bcd5c

Browse files
fix: use run instead of block_on
1 parent 2748fd8 commit f0bcd5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/task/builder.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ impl Builder {
132132
});
133133

134134
// Run the future as a task.
135-
unsafe { TaskLocalsWrapper::set_current(&wrapped.tag, || smol::block_on(wrapped)) }
135+
unsafe { TaskLocalsWrapper::set_current(&wrapped.tag, || smol::run(wrapped)) }
136136
}
137137
}
138138

0 commit comments

Comments
 (0)