MCPcopy Create free account
hub / github.com/cogentcore/core / AsyncUnlock

Method AsyncUnlock

core/render.go:45–54  ·  view source on GitHub ↗

AsyncUnlock must be called after making any updates in a separate goroutine outside of the main configuration, rendering, and event handling structure. It must have a matching [WidgetBase.AsyncLock] before it.

()

Source from the content-addressed store, hash-verified

43// outside of the main configuration, rendering, and event handling structure.
44// It must have a matching [WidgetBase.AsyncLock] before it.
45func (wb *WidgetBase) AsyncUnlock() {
46 rc := wb.Scene.renderContext()
47 if rc == nil {
48 return
49 }
50 rc.unlock()
51 if wb.Scene != nil {
52 wb.Scene.updating = false
53 }
54}
55
56// NeedsRender specifies that the widget needs to be rendered.
57func (wb *WidgetBase) NeedsRender() {

Callers 9

watchUpdateMethod · 0.80
GoUpdatePlotMethod · 0.80
makeColumnsMethod · 0.80
handleElementFunction · 0.80
AsyncUpdateTableMethod · 0.80
waitNoEventsMethod · 0.80
selectionMonitorMethod · 0.80
mainFunction · 0.80
PlayMethod · 0.80

Calls 2

unlockMethod · 0.80
renderContextMethod · 0.45

Tested by

no test coverage detected