Initial project import

This commit is contained in:
Agila Forge Importer committed 2026-07-13 15:20:32 +00:00
commit 23f2d29e32
11957 files changed
+1754577

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
import context
import time
import x.async as xasync
fn main() {
xasync.with_timeout(20 * time.millisecond, fn (mut ctx context.Context) ! {
done := ctx.done()
select {
_ := <-done {
return ctx.err()
}
1 * time.second {
return error('work unexpectedly finished')
}
}
}) or {
println('timeout result: ${err.msg()}')
return
}
eprintln('expected timeout error')
exit(1)
}