MCPcopy
hub / github.com/wailsapp/wails / getEvents

Function getEvents

v2/pkg/runtime/runtime.go:47–61  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

45}
46
47func getEvents(ctx context.Context) frontend.Events {
48 if ctx == nil {
49 pc, _, _, _ := goruntime.Caller(1)
50 funcName := goruntime.FuncForPC(pc).Name()
51 log.Fatalf("cannot call '%s': %s", funcName, contextError)
52 }
53 result := ctx.Value("events")
54 if result != nil {
55 return result.(frontend.Events)
56 }
57 pc, _, _, _ := goruntime.Caller(1)
58 funcName := goruntime.FuncForPC(pc).Name()
59 log.Fatalf("cannot call '%s': %s", funcName, contextError)
60 return nil
61}
62
63// Quit the application
64func Quit(ctx context.Context) {

Callers 6

EventsOnFunction · 0.85
EventsOffFunction · 0.85
EventsOffAllFunction · 0.85
EventsOnceFunction · 0.85
EventsOnMultipleFunction · 0.85
EventsEmitFunction · 0.85

Calls 2

NameMethod · 0.65
ValueMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…