mediamtx/internal/externalcmd/pool.go
2025-03-16 15:34:53 +01:00

20 lines
297 B
Go

package externalcmd
import (
"sync"
)
// Pool is a pool of external commands.
type Pool struct {
wg sync.WaitGroup
}
// Initialize initializes a Pool.
func (p *Pool) Initialize() error {
return nil
}
// Close waits for all external commands to exit.
func (p *Pool) Close() {
p.wg.Wait()
}