Skip to content
This repository was archived by the owner on Oct 29, 2021. It is now read-only.

Commit d65ff60

Browse files
author
olebedev
committed
Add mutex to the context
Why mutex should be added? Because timers runs in separate goroutunes and case with concurrent access is possible. So, mutex was added to avoid it. Also method `Must` was added. It is chainable method to ensure that the context exists. Example: ctx.Must().PevalString(`print("the context is good now")`)
1 parent 84dc4f2 commit d65ff60

File tree

6 files changed

+71
-235
lines changed

6 files changed

+71
-235
lines changed

0 commit comments

Comments
 (0)