use WithoutCancel interface w/ Pop(nil)

This commit is contained in:
James DeFelice
2015-12-12 15:33:48 +00:00
parent af95e3fe0e
commit 26593f1a6a
4 changed files with 11 additions and 10 deletions

View File

@@ -102,4 +102,5 @@ type UniqueDeadlined interface {
Deadlined
}
// WithoutCancel returns a chan that may never be closed and always blocks
func WithoutCancel() <-chan struct{} { return nil }