rfd icon indicating copy to clipboard operation
rfd copied to clipboard

Perhaps FileHandle should be !Send and !Sync on every platform

Open Andrepuel opened this issue 3 years ago • 1 comments

On linux, the type FileHandle is Send and Sync. On wasm32 FileHandle is !Send and !Sync.

It makes a little bit harder to do multiplatform code because a code that worked on Linux may not compiled on Wasm32.

Andrepuel avatar Apr 03 '22 18:04 Andrepuel

Indeed, I think we can make it !Send !Sync, and if someone does not care about wasm and needs Send/Sync, they can just unwrap the file handle and use Path directly.

PolyMeilex avatar Apr 19 '22 03:04 PolyMeilex