C
C#7mo ago
eid

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

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