https://toitlang.org/ logo
Something like this: ``` limiter := monitor.Semap...
# general
k
Something like this:
Copy code
limiter := monitor.Semaphore --count=5
while true:
  sleep --ms=2_000
  handle-exception := catch:  
    // some init code that needs exception handling

    // start task DD
    limiter.down
    task::
      try:
        // main DD task stuff
      finally:
        limiter.up