mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vlib: improvements to the context module (#18318)
This commit is contained in:
committed by
GitHub
parent
0e106c9062
commit
02ea6028af
@@ -32,7 +32,7 @@ fn test_with_cancel() {
|
||||
}
|
||||
|
||||
mut background := context.background()
|
||||
mut ctx, cancel := context.with_cancel(mut &background)
|
||||
mut ctx, cancel := context.with_cancel(mut background)
|
||||
defer {
|
||||
cancel()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user