Skip to content

Commit 7daafb3

Browse files
committed
WithRenderDelay: param as chan interface{}
For consistensy sake.
1 parent 1cf11c1 commit 7daafb3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

container_option.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func WithManualRefresh(ch <-chan interface{}) ContainerOption {
5959
// soon as bar is added, with this option it's possible to delay
6060
// rendering process by keeping provided chan unclosed. In other words
6161
// rendering will start as soon as provided chan is closed.
62-
func WithRenderDelay(ch <-chan struct{}) ContainerOption {
62+
func WithRenderDelay(ch <-chan interface{}) ContainerOption {
6363
return func(s *pState) {
6464
s.delayRC = ch
6565
}

progress.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ type pState struct {
4848
hmQueueLen int
4949
reqWidth int
5050
refreshRate time.Duration
51-
delayRC <-chan struct{}
51+
delayRC <-chan interface{}
5252
manualRC <-chan interface{}
5353
shutdownNotifier chan interface{}
5454
handOverBarHeap chan<- []*Bar

0 commit comments

Comments
 (0)