writeAsync implemented