1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

fmt: replace go with spawn

This commit is contained in:
Alexander Medvednikov
2022-11-05 10:46:40 +03:00
parent a082328e40
commit e81e0ac708
126 changed files with 262 additions and 262 deletions

View File

@ -10,7 +10,7 @@ fn test_waitgroup_reuse() {
wg.add(1)
mut executed := false
go fn (mut wg WaitGroup, executed voidptr) {
spawn fn (mut wg WaitGroup, executed voidptr) {
defer {
wg.done()
}
@ -28,7 +28,7 @@ fn test_waitgroup_reuse() {
fn test_waitgroup_no_use() {
mut done := false
go fn (done voidptr) {
spawn fn (done voidptr) {
time.sleep(1 * time.second)
if *(&bool(done)) == false {
panic('test_waitgroup_no_use did not complete in time')