harmony
harmony copied to clipboard
Change naming convention
Current State
-
PatternNameWithDone(done, ...)
-
PatternNameWithContext(ctx, ...)
~~Maybe Option 1 - generic~~
Impossible because we can't union interfaces and types
- ~~
PatternName(Cancelable, ...) (chan T, error)
where Cancelable iscontext.Context | ~chan struct{}
~~ - ~~
MustPatternName(Cancelable, ...) chan T
where Cancelable iscontext.Context | ~chan struct{}
~~
Maybe Option 2 - for a sake of short naming.
-
PatternNameWithDone(done ...) (chan T, error)
-
PatternName(ctx ...) (chan T, error)
-
MustPatternNameWithDone(done, ...) chan T
-
MustPatternName(ctx, ...) chan T
Maybe Option 3 - for a sake of short naming ( pattern WithContext
).
-
PatternName(done ...) (chan T, error)
-
PatternNameWithContext(ctx ...) (chan T, error)
-
MustPatternName(done, ...) chan T
-
MustPatternNameWithContext(ctx, ...) chan T