Stop stops the bridge
(ctx context.Context)
| 49 | |
| 50 | // Stop stops the bridge |
| 51 | func (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 |
| 60 | func (b *WailsBridge) RegisterAgent(ag *agent.Agent) error { |