uce/site/doc/pages/runtime_safe_key.txt
2026-06-16 23:02:45 +00:00

18 lines
432 B
Plaintext

:sig
String runtime_safe_key(String key, String label = "runtime key")
:params
key : caller-provided key
label : diagnostic label used by native error handling
return value : stable SHA-1 key, or an empty string for empty input in wasm
:see
>sys
>gen_sha1
:content
Trims a runtime key and converts it to a stable SHA-1 identifier suitable for task/runtime file names.
:example
print(runtime_safe_key(" My Task Name "), "\n");