We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b05ead commit c8d1d1aCopy full SHA for c8d1d1a
src/lib.rs
@@ -231,11 +231,7 @@ async fn connect(lua: Lua, params: Value) -> Result<Connection> {
231
232
async fn list_kernels(lua: Lua, _: Value) -> Result<Value> {
233
let handle = TOKIO.handle();
234
- let res = handle
235
- .spawn(async move {
236
- list_kernelspecs().await
237
- })
238
- .await;
+ let res = handle.spawn(async move { list_kernelspecs().await }).await;
239
240
#[allow(clippy::expect_used)]
241
return lua.to_value(&res.expect("Tokio JoinError"));
0 commit comments