Discover Packages
github.com/getlantern/withtimeout
package
module
Version:
v0.0.0-...-511f017
Opens a new window with list of versions in this module.
Published: Aug 29, 2016
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 31
Opens a new window with list of known importers.
README
README
¶
withtimeout
withtimeout provides a Golang package that allows adding a timeout to any
operation.
To install:
go get github.com/getlantern/withtimeout
For docs:
godoc github.com/getlantern/withtimeout
Expand ▾
Collapse ▴
Documentation
¶
package withtimeout provides functionality for performing operations with
a timeout.
Do executes the given fn and returns either the result of executing it or an
error if fn did not complete within timeout. If execution timed out, timedOut
will be true.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.