C
C#6mo ago
eid

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

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