From bb06373836b4ea4e12bb298c4929a245006bbac6 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Wed, 29 Jan 2020 21:37:37 -0500 Subject: [PATCH] Whoops, accidentally commited this new Sub type idea --- tea.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tea.go b/tea.go index 08db553..cfeb5f0 100644 --- a/tea.go +++ b/tea.go @@ -1,7 +1,6 @@ package tea import ( - "context" "errors" "io" "os" @@ -19,7 +18,7 @@ type Cmd func(Model) Msg // Sub is an event subscription. If it returns nil it's considered a no-op, // but there's really no reason to have a nil subscription. -type Sub func(context.Context, Model) Msg +type Sub func(Model) Msg // Subs is a keyed set of subscriptions. The key should be a unique // identifier; two different subscriptions should not have the same key