You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FsLoader makes blocking function calls like std::fs::File::open(), buf_reader.read_to_string() etc. in async block. This will lead to starvation of async runtime, and also probable panics.
This is a good point, but I am not comfortable with forcing an async runtime. I am not up to date with efforts to provide a runtime independent async I/O API.
FsLoader
makes blocking function calls likestd::fs::File::open()
,buf_reader.read_to_string()
etc. in async block. This will lead to starvation of async runtime, and also probable panics.json-ld/core/src/loader/fs.rs
Lines 110 to 130 in 27c0a80
Expected behaviour:
Should use non blocking async functions, like those in
tokio::fs
instead.The text was updated successfully, but these errors were encountered: