mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
thread: Add comments
This commit is contained in:
parent
00e78c1eae
commit
5040b3bcfc
@ -57,6 +57,8 @@ loop:
|
||||
// Call calls f on the thread.
|
||||
//
|
||||
// Do not call this from the same thread. This would block forever.
|
||||
//
|
||||
// Call panics when Loop already ends.
|
||||
func (t *Thread) Call(f func() error) error {
|
||||
select {
|
||||
case t.funcs <- f:
|
||||
|
Loading…
Reference in New Issue
Block a user