NacDan
NacDan
CC#
Created by NacDan on 5/1/2023 in #help
Iterating over AsyncEnumerable and writing to MemoryStream
Mainly a question on how you all would go about this, I am thinking of just initializing a SemaphoreSlim(1,1) and waiting while inside the iteration then writing to the memory stream. Any opposition to this? The compiled code inside an AsyncEnumerable seems to be what I'd expect so I would need some locking while writing to the stream regardless.
25 replies