MCPcopy Index your code
hub / github.com/EngoEngine/engo / sync

Method sync

common/audio_player.go:215–228  ·  view source on GitHub ↗
(f func())

Source from the content-addressed store, hash-verified

213}
214
215func (p *Player) sync(f func()) bool {
216 ch := make(chan struct{})
217 ff := func() {
218 f()
219 close(ch)
220 }
221 select {
222 case p.syncCh <- ff:
223 <-ch
224 return true
225 case <-p.readLoopEndedCh:
226 return false
227 }
228}
229
230func (p *Player) eof() bool {
231 r := false

Callers 4

eofMethod · 0.95
CurrentMethod · 0.95
GetVolumeMethod · 0.95
SetVolumeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected