mirror of
https://github.com/Open-Argon/argon-v3.git
synced 2025-12-06 08:56:07 +00:00
16 lines
149 B
Go
16 lines
149 B
Go
package main
|
|
|
|
import (
|
|
"runtime"
|
|
"time"
|
|
)
|
|
|
|
func garbageCollect() {
|
|
go func() {
|
|
for {
|
|
time.Sleep(10 * time.Second)
|
|
runtime.GC()
|
|
}
|
|
}()
|
|
}
|