MCPcopy Index your code
hub / github.com/git-bug/git-bug / start

Method start

bridge/github/import_mediator.go:60–67  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

58}
59
60func (mm *importMediator) start(ctx context.Context) {
61 ctx, cancel := context.WithCancel(ctx)
62 mm.fillImportEvents(ctx)
63 // Make sure we cancel everything when we are done, instead of relying on the parent context
64 // This should unblock pending send to the channel if the capacity was reached and avoid a panic/race when closing.
65 cancel()
66 close(mm.importEvents)
67}
68
69// NextImportEvent returns the next ImportEvent, or nil if done.
70func (mm *importMediator) NextImportEvent() ImportEvent {

Callers 1

NewImportMediatorFunction · 0.95

Calls 2

fillImportEventsMethod · 0.95
closeFunction · 0.85

Tested by

no test coverage detected