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
How should I wait for the mountpoint to be ready ?
When I create a mountpoint using Session::spawn, I consider it to be ready once the Filesystem::init method is called.
To wait for that event, I'm using a Mutex<bool> and a Condvar to signal the event and set them at the end of the init method.
This work well enough on Linux,
but on macOS I suspect this is causing some of my tests to be flaky because the mountpoint is not ready at that point.
Currently I don't see any other way to wait for the mountpoint to be ready, maybe It's something that could be added to Session/BackgroundSession.
The text was updated successfully, but these errors were encountered:
How should I wait for the mountpoint to be ready ?
When I create a mountpoint using
Session::spawn
, I consider it to be ready once theFilesystem::init
method is called.To wait for that event, I'm using a
Mutex<bool>
and aCondvar
to signal the event and set them at the end of theinit
method.This work well enough on Linux,
but on macOS I suspect this is causing some of my tests to be flaky because the mountpoint is not ready at that point.
Currently I don't see any other way to wait for the mountpoint to be ready, maybe It's something that could be added to
Session
/BackgroundSession
.The text was updated successfully, but these errors were encountered: