Toot

Written by Julien Riou on 2025-01-22 at 06:08

The solution looks like this:

for {

    select {

    case <-ctx.Done():

        // cancelation work

        return

    default:

        run()

        time.Sleep(...) // remove WithContext

    }

}

=> More informations about this toot | View the thread | More toots from jriou@hachyderm.io

Mentions

Tags

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113870512308407238
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
223.093962 milliseconds
Gemini-to-HTML Time
0.799243 milliseconds

This content has been proxied by September (3851b).