public static bool WaitOne(this FrequencyBarrier frequencyBarrier) => frequencyBarrier.WaitOne(-1);
public static bool GetOne(this FrequencyBarrier frequencyBarrier) => frequencyBarrier.WaitOne(0);