synctest

Imports

Imports #

_ "unsafe"

Structs

Bubble struct #

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
}

Functions

Acquire function #

Acquire returns a reference to the current goroutine's bubble. The bubble will not become idle until Release is called.

func Acquire() *Bubble

Release method #

Release releases the reference to the bubble, allowing it to become idle again.

func (b *Bubble) Release()

Run function #

go:linkname Run

func Run(f func())

Run method #

Run executes f in the bubble. The current goroutine must not be part of a bubble.

func (b *Bubble) Run(f func())

Wait function #

go:linkname Wait

func Wait()

acquire function #

go:linkname acquire

func acquire() any

inBubble function #

go:linkname inBubble

func inBubble(any, func())

release function #

go:linkname release

func release(any)

Generated with Arrow