nicolasdilley / Gomela

Tool developped for "Bounded verification of message passing concurrency in Go programs."
39 stars 7 forks source link

Add support time.afterFunc(timeout, fn) #10

Open nicolasdilley opened 3 years ago

nicolasdilley commented 3 years ago

if timeout != 0 { errChannel = make(chan error, 2) time.AfterFunc(timeout, func() { errChannel <- errors.New("") }) }

Potential fix:

The call could be translated to a proctype that executes the translation of the body of the anonymous function