コード例 #1
0
        static async Task RecoverAsync(FasterLog log, CancellationToken cancellationToken)
        {
            while (!cancellationToken.IsCancellationRequested)
            {
                await Task.Delay(TimeSpan.FromMilliseconds(restorePeriodMs), cancellationToken);

                Console.WriteLine("Restoring ...");

                log.RecoverReadOnly();
            }
        }