Go Package time: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 9: Line 9:
=Overview=
=Overview=


* <tt>[https://golang.org/pkg/time/#After time.After]</tt> returns a channel that after the given duration, will send current time on it.
* <tt>[https://golang.org/pkg/time/#After time.After]</tt> returns a channel that after the given duration, will send current time on it. This can be used to implement a timeout with <tt>[[Go Channels#select]]</tt>.

Revision as of 04:41, 2 April 2016

External

Internal

Overview

  • time.After returns a channel that after the given duration, will send current time on it. This can be used to implement a timeout with Go Channels#select.