all: Go 1.21 support

This commit is contained in:
Ayke van Laethem
2023-07-06 12:01:52 +02:00
committed by Ron Evans
parent c25dd0a972
commit a93f0ed12a
16 changed files with 76 additions and 20 deletions
+2 -2
View File
@@ -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