{"modulePath":"github.com/glojurelang/glojure","version":"v0.7.25","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package thread\n\nPackage thread exposes JVM-faithful java.lang.Thread equivalents for code running on glojure. Only the static methods whose semantics map cleanly onto Go's runtime are registered here; instance methods (start, join, interrupt, ...) would require a synthetic per-goroutine identity layer and are out of scope for now.\n\n## Functions\n\n```go\nfunc CurrentThread() any\n```\n\n```go\nfunc Sleep(args ...any) any\n```\nSleep mirrors java.lang.Thread.sleep. Accepts (millis) or (millis, nanos); both arguments are coerced from any int-like value glojure may pass.\n\n## Types\n\n```go\ntype Thread struct{}\n```\nThread is a lightweight hosted representation of the current goroutine. Go does not expose a stable goroutine identity or JVM-shaped frames, but a concrete value with an empty stack preserves portable feature-detection and non-REPL control flow.\n\n```go\nfunc (thread *Thread) GetStackTrace() []any\n```\n\n","path":"github.com/glojurelang/glojure/pkg/javacompat/thread","name":"thread","synopsis":"Package thread exposes JVM-faithful java.lang.Thread equivalents for code running on glojure.","isRedistributable":true}
