Closed
Description
This issue was originally filed by jjinux...@google.com
In one of Seth Ladd's slides, he has this:
main() {
File script = new File(new Options().script);
script.directory().then((Directory d) {
runServer(d.path);
});
}
This requires an asynchronous callback to get d.path. As far as I know, UNIX doesn't actually have an asynchronous file API, so this must be using a thread under the covers. Using a thread in order to provide an asynchronous API with a callback makes both the implementation and the API a lot more complicated, and I don't think there's much benefit in this case.