Discover Packages
github.com/kzmnbrs/future
package
module
Version:
v0.0.0-...-e40d1ef
Opens a new window with list of versions in this module.
Published: Aug 21, 2023
License: AGPL-3.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Chain executes futures sequentially, breaking on the first error.
Future represents a deferred function call.
Wrapped function starts on Await.
WrapFunc wraps the function call in a future.
Await returns the resulting error.
WrapVoidFunc wraps the function call in a future.
Await returns either nil or context.Cancelled.
Group executes futures concurrently, breaking on the first error.
Mock is an autogenerated mock type for the Future type
NewMock creates a new instance of Mock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
The first argument is typically a *testing.T value.
Await provides a mock function with given fields: _a0
Source Files
¶
Click to show internal directories.
Click to hide internal directories.