mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
parent
64db8f9c7a
commit
87b4b8b1b4
@ -47,7 +47,8 @@ func Loop(ch <-chan error) error {
|
||||
// Run calls f on the main thread.
|
||||
func Run(f func() error) error {
|
||||
if atomic.LoadInt32(&started) == 0 {
|
||||
panic("mainthread: the mainthread loop is not started yet")
|
||||
// TODO: This can reach from other goroutine before Loop is called (#809).
|
||||
// panic("mainthread: the mainthread loop is not started yet")
|
||||
}
|
||||
|
||||
ch := make(chan struct{})
|
||||
|
Loading…
Reference in New Issue
Block a user