code: public AsyncWork<FileIO.ReadWrite, IOException> createAndOpenFileAsync(String prefix, String suffix) {
  		return new Task.OnFile<FileIO.ReadWrite, IOException>(tempDir, "Create temporary file", Task.PRIORITY_NORMAL) {
  			@Override
  			public FileIO.ReadWrite run() throws IOException {
  				return createAndOpenFileSync(prefix, suffix);
  			}
  		}.start().getOutput();
  	}
docs: Create and open a temporary file.