MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime-go / IncrementEpoch

Method IncrementEpoch

engine.go:81–84  ·  view source on GitHub ↗

IncrementEpoch will increase the current epoch number by 1 within the current engine which will cause any connected stores with their epoch deadline exceeded to now be interrupted. This method is safe to call from any goroutine.

()

Source from the content-addressed store, hash-verified

79//
80// This method is safe to call from any goroutine.
81func (engine *Engine) IncrementEpoch() {
82 C.wasmtime_engine_increment_epoch(engine.ptr())
83 runtime.KeepAlive(engine)
84}
85
86// IsPulley will return whether the current engine's execution is backed by
87// the Pulley interpreter inside of Wasmtime. If this returns false then

Callers 2

TestInterruptWasmFunction · 0.80
ExampleConfig_interruptFunction · 0.80

Calls 1

ptrMethod · 0.95

Tested by 2

TestInterruptWasmFunction · 0.64
ExampleConfig_interruptFunction · 0.64