✅ what is the name of the pattern that used in types that end with *source?
CancellationTokenSource,TaskCompletionSource,DataSource,EventSource
7 Replies
are you talking about factory pattern?
Observer Pattern perhaps.
i don't know, but i think it is pattern,or may more than one pattern
getting tokens from a source and then getting notified is called observer pattern.
Factory
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
Yeah, observer and factory are definitely wrong
I'd agree -- a "Source" is literally just an object which provides a thing.
DataSource
is a property which should contain an object where you get your data from. CancellationTokenSource
is where you get a CancellationToken
fromUnknown User•5mo ago
Message Not Public
Sign In & Join Server To View