Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
jochasinga committed Mar 18, 2017
2 parents a484142 + 0892a68 commit d71048c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions observable/observable.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ func Empty() Observable {

// Interval creates an Observable emitting incremental integers infinitely between
// each given time interval.
func Interval(term chan struct{}, timeout time.Duration) Observable {
func Interval(term chan struct{}, interval time.Duration) Observable {
source := make(chan interface{})
go func(term chan struct{}) {
i := 0
Expand All @@ -309,7 +309,7 @@ func Interval(term chan struct{}, timeout time.Duration) Observable {
select {
case <-term:
break OuterLoop
case <-time.After(timeout):
case <-time.After(interval):
source <- i
}
i++
Expand Down

0 comments on commit d71048c

Please sign in to comment.