diff --git a/osthread/osthread.go b/osthread/osthread.go index 15a630a..4f68fcb 100644 --- a/osthread/osthread.go +++ b/osthread/osthread.go @@ -27,13 +27,13 @@ func Start(entrypoint func()) { done := make(chan any) // Immediately queue entrypoint - Go(func() { + go func() { defer func() { done <- nil }() entrypoint() - }) + }() // Call functions in our queue until entrypoint returns. // These functions are called on the main operating system thread.