[!warning] Past due
not done due before today hide recurrence rule hide tags group by function task.tags.sort().join(", ") sort by priority sort by due hide task count
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This code is licensed under the terms of the MIT license | |
// Source: https://driquet.info/throttling-semaphore/ | |
package main | |
type token struct{} | |
// Semaphore represents a structure able to limit simultaneous access to a shared resource. | |
type Semaphore struct { | |
c chan token | |
} |