yog-script-analyze 0.4.0

Yog Script (.ys, .yns) analyzed: its lexer, parser and syntax tree, names resolved, the class index model — what the build and the editors read a source with.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
namespace System.Threading;

using System.Threading.Tasks;

/// At most so many at once (.NET's `SemaphoreSlim`): each enters by waiting,
/// leaves by releasing.
[Intrinsic]
public readonly class Semaphore {
    public Semaphore(i32 initialCount, i32 maxCount = i32.MaxValue) {}

    public void Wait();
    /// As `Wait()`, at most `timeout`: whether it entered.
    public bool Wait(TimeSpan timeout);
    public Task WaitAsync();
    /// Lets `releaseCount` more in: the count before.
    public i32 Release(i32 releaseCount = 1);
    public i32 CurrentCount { get; }
}