Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blockable ¶
type Blockable interface { // IDs that this object is blocking on Dependencies() ids.Set // Notify this object that an event has been fulfilled Fulfill(ids.ID) // Notify this object that an event has been abandoned Abandon(ids.ID) // Update the state of this object without changing the status of any events Update() }
Blockable defines what an object must implement to be able to block on events
type Blocker ¶
Blocker tracks objects that are blocked
func (*Blocker) Abandon ¶
Abandon notifies all objects blocking on the event whose ID is <id> that the event has been abandoned
func (*Blocker) Fulfill ¶
Fulfill notifies all objects blocking on the event whose ID is <id> that the event has happened
func (*Blocker) Len ¶ added in v1.7.16
Returns the number of items that have dependencies waiting on them to be fulfilled
func (*Blocker) PrefixedString ¶
PrefixedString returns the same value as the String function, with all the new lines prefixed by [prefix]
Click to show internal directories.
Click to hide internal directories.