package
Version:
v0.2.0-rc.1
Opens a new window with list of versions in this module.
Published: Mar 9, 2020
License: Apache-2.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
¶
Election is a stub Election that always believes to be the master.
Await returns immediately, as the instance is always the master.
Close does nothing because Election is always the master.
Resign cancels the contexts obtained through WithMastership.
WithMastership returns a cancelable context derived from the passed in context.
Factory creates Election instances.
NewElection creates a specific Election instance.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.