C
C#2w ago
eid

✅ what is the name of the pattern that used in types that end with *source?

CancellationTokenSource,TaskCompletionSource,DataSource,EventSource
7 Replies
RiA
RiA2w ago
are you talking about factory pattern? Observer Pattern perhaps.
eid
eid2w ago
i don't know, but i think it is pattern,or may more than one pattern
RiA
RiA2w ago
getting tokens from a source and then getting notified is called observer pattern.
PixxelKick
PixxelKick2w ago
Factory
Unknown User
Unknown User2w ago
Message Not Public
Sign In & Join Server To View
canton7
canton72w ago
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 from
Unknown User
Unknown User2w ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server
More Posts