<div>Hello,</div><div><br></div><div>I need to connect to a network location and read a file but I also need some way of waiting around until the connection is established.  Currently I use the following snippet to do this:     </div>
<div><br></div><div>while (!std.file.exists("/Volumes/mountedDir/myfile.txt") && timeout < 30) </div><div>{</div><div>        core.thread.Thread.sleep(10_000_000);  // core.thread.Thread conflicts with std.regex.Thread, hence the full path reference</div>
<div>        timeout++;</div><div>}</div><div><br></div><div>with the recent changes to std.regex it stopped compiling due to the "Thread" conflict.  Is there a more obvious way to do what I'm doing that avoids importing core.thread?</div>
<div><br></div><div>Thanks,</div><div>Josh</div>