vinchent c5582275e7 context: realistic usage of context.
Use a go routine for the work logic. Here sleep and append to string.
Inside the go routine, select for ctx.Done(). If happens, just stop and
return.

In the outside function, select for ctx.Done() too. If it happens, that
means the work logic has not finished before canceled.
2024-09-21 20:35:43 +02:00
2024-09-21 19:48:58 +02:00
2024-09-17 11:35:22 +02:00
2024-09-17 16:12:39 +02:00
2024-09-10 11:50:18 +02:00
2024-09-18 13:41:55 +02:00
2024-09-10 21:56:18 +02:00
2024-09-20 21:04:25 +02:00
2024-09-11 11:49:10 +02:00
2024-09-10 11:50:18 +02:00
2024-09-10 11:50:36 +02:00

Learn Go with tests

Description
No description provided
Readme 170 KiB
Languages
Go 100%