mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 18:29:53 +08:00
14 lines
253 B
Go
14 lines
253 B
Go
package runtime
|
|
|
|
import (
|
|
"context"
|
|
"github.com/wailsapp/wails/v2/internal/servicebus"
|
|
)
|
|
|
|
// Quit the application
|
|
func Quit(ctx context.Context) {
|
|
bus := servicebus.ExtractBus(ctx)
|
|
// Start shutdown of Wails
|
|
bus.Publish("quit", "runtime.Quit()")
|
|
}
|