agent/pkg/agentic/pid_example_test.go

20 lines
262 B
Go
Raw Normal View History

// SPDX-License-Identifier: EUPL-1.2
package agentic
import (
"os"
core "dappco.re/go/core"
)
func ExamplePIDAlive() {
core.Println(PIDAlive(os.Getpid()))
// Output: true
}
func ExamplePIDTerminate() {
core.Println(PIDTerminate(0))
// Output: false
}