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

+21
View File
@@ -0,0 +1,21 @@
import net.http
import sync
import time
fn send_request(mut wg sync.WaitGroup) !string {
start := time.ticks()
data := http.get('https://google.com')!
finish := time.ticks()
println('Finish getting time ${finish - start} ms')
wg.done()
return data.body
}
fn main() {
mut wg := sync.new_waitgroup()
for i := 0; i < 50; i++ {
wg.add(1)
spawn send_request(mut wg)
}
wg.wait()
}