aboutsummaryrefslogtreecommitdiff
path: root/mixins.go
diff options
context:
space:
mode:
Diffstat (limited to 'mixins.go')
-rwxr-xr-xmixins.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/mixins.go b/mixins.go
index 65309e4..a037561 100755
--- a/mixins.go
+++ b/mixins.go
@@ -39,3 +39,15 @@ func WithStdLogger() *MixinLogger {
func (o MixinLogger) apply(r *Rutina) {
r.logger = o.Logger
}
+
+type MixinErrChan struct {
+ errCh chan error
+}
+
+func WithErrChan(errCh chan error) *MixinErrChan {
+ return &MixinErrChan{errCh: errCh}
+}
+
+func (o MixinErrChan) apply(r *Rutina) {
+ r.errCh = o.errCh
+}