This class provides methods for asynchronous operations on files instances.
For synchronous operations, see nusys.io.File. To obtain an instance of
this class, use the async field of nusys.io.File.
var file = nusys.FileSystem.open("example.txt", "r");
file.async.readFile(contents -> trace(contents.toString()));
All methods here are asynchronous versions of the functions in
nusys.io.File. Please see them for a description of the arguments and
use of each method.
Any synchronous method that returns no value (Void return type) has an
extra callback:Callback<NoData> argument.
Any synchronous method that returns a value has an extra
callback:Callback<T> argument, where T is the return type of the
synchronous method.
Errors are communicated through the callbacks or in some cases thrown immediately.