mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-12 15:03:41 +00:00
all: Go 1.21 support
This commit is contained in:
committed by
Ron Evans
parent
c25dd0a972
commit
a93f0ed12a
@@ -44,8 +44,8 @@ func nanosecondsToTicks(ns int64) timeUnit {
|
||||
// This function is called by the scheduler.
|
||||
// Schedule a call to runtime.scheduler, do not actually sleep.
|
||||
//
|
||||
//export runtime.sleepTicks
|
||||
//go:wasmimport gojs runtime.sleepTicks
|
||||
func sleepTicks(d timeUnit)
|
||||
|
||||
//export runtime.ticks
|
||||
//go:wasmimport gojs runtime.ticks
|
||||
func ticks() timeUnit
|
||||
|
||||
Reference in New Issue
Block a user