Skip to content

Instantly share code, notes, and snippets.

@stevejgordon
Created October 14, 2020 08:19
Show Gist options
  • Select an option

  • Save stevejgordon/e1cddc02a02516fdf2c5c692f4ecec69 to your computer and use it in GitHub Desktop.

Select an option

Save stevejgordon/e1cddc02a02516fdf2c5c692f4ecec69 to your computer and use it in GitHub Desktop.
internal UnboundedChannelReader(UnboundedChannel<T> parent)
{
_parent = parent;
_readerSingleton = new AsyncOperation<T>(parent._runContinuationsAsynchronously, pooled: true);
_waiterSingleton = new AsyncOperation<bool>(parent._runContinuationsAsynchronously, pooled: true);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment