Concurrent tasks execution with a shared state
- helloworld - simple hello world worker
- events - adding an event handler to the worker
- jobttl - job lifetime usage
- recover - panic handling
To run benchmarks use make bench
cpu: AMD Ryzen 7 3700X 8-Core Processor
Benchmark
Benchmark/ForLoop
Benchmark/ForLoop-16 8253277 169.7 ns/op 0 B/op 0 allocs/op
Benchmark/Default
Benchmark/Default-16 1000000 1145 ns/op 112 B/op 2 allocs/op
Benchmark/WithJobTTL
Benchmark/WithJobTTL-16 170295 6926 ns/op 712 B/op 13 allocs/op
Benchmark/WithJobID
Benchmark/WithJobID-16 340582 3562 ns/op 272 B/op 8 allocs/op