Imports #
_ "unsafe"
_ "unsafe"
A Bubble is a synctest bubble. Not a public API. Used by syscall/js to propagate bubble membership through syscalls.
type Bubble struct {
b any
}Acquire returns a reference to the current goroutine's bubble. The bubble will not become idle until Release is called.
func Acquire() *BubbleRelease releases the reference to the bubble, allowing it to become idle again.
func (b *Bubble) Release()go:linkname Run
func Run(f func())Run executes f in the bubble. The current goroutine must not be part of a bubble.
func (b *Bubble) Run(f func())go:linkname Wait
func Wait()go:linkname acquire
func acquire() anygo:linkname inBubble
func inBubble(any, func())go:linkname release
func release(any)Generated with Arrow