osthread: I'm pretty sure this should fix it
This commit is contained in:
parent
41b74c5b14
commit
573f042f39
1 changed files with 2 additions and 2 deletions
|
|
@ -27,13 +27,13 @@ func Start(entrypoint func()) {
|
||||||
done := make(chan any)
|
done := make(chan any)
|
||||||
|
|
||||||
// Immediately queue entrypoint
|
// Immediately queue entrypoint
|
||||||
Go(func() {
|
go func() {
|
||||||
defer func() {
|
defer func() {
|
||||||
done <- nil
|
done <- nil
|
||||||
}()
|
}()
|
||||||
|
|
||||||
entrypoint()
|
entrypoint()
|
||||||
})
|
}()
|
||||||
|
|
||||||
// Call functions in our queue until entrypoint returns.
|
// Call functions in our queue until entrypoint returns.
|
||||||
// These functions are called on the main operating system thread.
|
// These functions are called on the main operating system thread.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue