Skip to content

Commit df502a5

Browse files
committed
Give up control
1 parent 156d317 commit df502a5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/sync/coroutine.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ func (s *coState) Execute() {
170170
s.unblock <- true
171171
s.logger.Println("execute: unblocked")
172172

173+
runtime.Gosched()
174+
173175
// Run until blocked (which is also true when finished)
174176
select {
175177
case <-s.blocking:

0 commit comments

Comments
 (0)