You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now Responses is of type BlockingCollection - which means that the user can read and write to it. We should probably offer an opaque interface, i.e. so the users can't add objects there.
Observe that BlockingCollection implements IReadOnlyCollection, but that interface doesn't offer the nice TryTake method.
We could still offer other common interfaces, such as ICollection (as BlockingCollection as of now does).
The text was updated successfully, but these errors were encountered:
(This is a potential improvement)
Right now
Responses
is of typeBlockingCollection
- which means that the user can read and write to it. We should probably offer an opaque interface, i.e. so the users can't add objects there.Observe that
BlockingCollection
implementsIReadOnlyCollection
, but that interface doesn't offer the niceTryTake
method.We could still offer other common interfaces, such as
ICollection
(asBlockingCollection
as of now does).The text was updated successfully, but these errors were encountered: