add utility for writing to an AsyncStream