vibe.d beta banner
get vibe.d
0.10.0

Asynchronous I/O that doesn’t get in your way, written in D

Function DirectoryWatcher.readChanges

Fills the destination array with all changes that occurred since the last call.

bool readChanges (
  ref DirectoryChange[] dst,
  core.time.Duration timeout = max()
) @safe;

The function will block until either directory changes have occurred or until the timeout has elapsed. Specifying a negative duration will cause the function to wait without a timeout.

Parameters

NameDescription
dst The destination array to which the changes will be appended
timeout Optional timeout for the read operation. A value of Duration.max will wait indefinitely.

Returns

If the call completed successfully, true is returned.

Authors

Sönke Ludwig

Copyright

© 2012-2019 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.