MCPcopy Create free account
hub / github.com/astercloud/aster / Stop

Method Stop

pkg/desktop/bridge_wails.go:51–57  ·  view source on GitHub ↗

Stop stops the bridge

(ctx context.Context)

Source from the content-addressed store, hash-verified

49
50// Stop stops the bridge
51func (b *WailsBridge) Stop(ctx context.Context) error {
52 if b.cancel != nil {
53 b.cancel()
54 }
55 close(b.eventCh)
56 return nil
57}
58
59// RegisterAgent registers an agent with the bridge
60func (b *WailsBridge) RegisterAgent(ag *agent.Agent) error {

Callers 1

WailsShutdownMethod · 0.95

Calls 1

cancelMethod · 0.45

Tested by

no test coverage detected