Closed andrewgazelka closed 2 days ago
Assigning @colin-ho but unsure who is best suited for completing this. other contender based on blame is @jaychia
Feel free to make a refactor to unblock, I can review.
Is the canonical approach something like async fn async_try_new(...)
+ fn try_new(...) {block_on(async_try_new)}
? I'm not entirely sure here, but that could maybe work
Feel free to make a refactor to unblock, I can review.
Is the canonical approach something like
async fn async_try_new(...)
+fn try_new(...) {block_on(async_try_new)}
? I'm not entirely sure here, but that could maybe work
canonically you would just remove try_new
and leave if you want to block up to the callee. For instance, if the callee wanted to block (as python should do) it could do block_on(try_new)
where try_new
is async
ok I will work on this
https://github.com/Eventual-Inc/Daft/blob/7e89850b8b276a32119f2d59ccbeeb39dc009557/src/daft-scan/src/glob.rs#L141-L302
getting
When executing from an async runtime. Can we make it so we don't block? I'm thinking
fn try_new(...)
should becomesasync fn try_new(...)
This is similar to https://github.com/Eventual-Inc/Daft/pull/3378