From 0cb48854e34a014f3d50c9c67172666a8ce29d98 Mon Sep 17 00:00:00 2001 From: Jordan Hugh McKimm Date: Sun, 17 Mar 2024 22:02:42 +0000 Subject: [PATCH] Fix grammar --- DocsV2/docs/Queuing/README.md | 2 +- DocsV2/docs/Scheduler/README.md | 2 +- Src/Coravel/Cache/InMemoryCache.cs | 4 ++-- Src/Coravel/Events/Dispatcher.cs | 4 ++-- Src/Coravel/Queuing/Queue.cs | 4 ++-- Src/Coravel/Scheduling/Schedule/Interfaces/IScheduler.cs | 4 ++-- Src/Coravel/Scheduling/Schedule/Scheduler.cs | 8 ++++---- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/DocsV2/docs/Queuing/README.md b/DocsV2/docs/Queuing/README.md index cf3e489e..4c68999a 100644 --- a/DocsV2/docs/Queuing/README.md +++ b/DocsV2/docs/Queuing/README.md @@ -187,7 +187,7 @@ provider ## Adjusting Consummation Delay -Normally, the queue will consume all of it's queued tasks every 30 seconds. +Normally, the queue will consume all of its queued tasks every 30 seconds. You can adjust this delay in the `appsettings.json` file. ```json diff --git a/DocsV2/docs/Scheduler/README.md b/DocsV2/docs/Scheduler/README.md index 9c23975b..47d04512 100644 --- a/DocsV2/docs/Scheduler/README.md +++ b/DocsV2/docs/Scheduler/README.md @@ -279,7 +279,7 @@ scheduler For this example, `SendNightlyReportsEmailJob` and `SendPendingNotifications` will share a dedicated pipeline/thread. -`RebuildStaticCachedData` has it's own dedicated worker so it will not affect the other tasks if it does take a long time to run. +`RebuildStaticCachedData` has its own dedicated worker so it will not affect the other tasks if it does take a long time to run. ### Useful For diff --git a/Src/Coravel/Cache/InMemoryCache.cs b/Src/Coravel/Cache/InMemoryCache.cs index 6dcc95c3..97f67987 100644 --- a/Src/Coravel/Cache/InMemoryCache.cs +++ b/Src/Coravel/Cache/InMemoryCache.cs @@ -11,7 +11,7 @@ public class InMemoryCache : ICache private readonly IMemoryCache _cache; private readonly HashSet _keys; // I could create a new type for a thread safe hashset. - // But, the Flush() method needs to be safe in it's entire operation. + // But, the Flush() method needs to be safe in its entire operation. private readonly object _setLock; public InMemoryCache(IMemoryCache cache) @@ -133,4 +133,4 @@ private void EvictionCallback(object key, object value, EvictionReason reason, o } } } -} \ No newline at end of file +} diff --git a/Src/Coravel/Events/Dispatcher.cs b/Src/Coravel/Events/Dispatcher.cs index c881c659..93ddc176 100644 --- a/Src/Coravel/Events/Dispatcher.cs +++ b/Src/Coravel/Events/Dispatcher.cs @@ -45,7 +45,7 @@ public IEventSubscription Register() where TEvent : IEvent } /// - /// Broadcasts an event to be handled by it's subscribed listeners. + /// Broadcasts an event to be handled by its subscribed listeners. /// /// /// @@ -107,4 +107,4 @@ public IEventSubscription Subscribe() where TListener : IList return this; } } -} \ No newline at end of file +} diff --git a/Src/Coravel/Queuing/Queue.cs b/Src/Coravel/Queuing/Queue.cs index 24491c76..92c8cab8 100644 --- a/Src/Coravel/Queuing/Queue.cs +++ b/Src/Coravel/Queuing/Queue.cs @@ -149,7 +149,7 @@ private ActionOrAsyncFunc EnqueueInvocable(Action beforeInvoked = { Type invocableType = typeof(T); // This allows us to scope the scheduled IInvocable object - // and allow DI to inject it's dependencies. + // and allow DI to inject its dependencies. await using (var scope = this._scopeFactory.CreateAsyncScope()) { if (scope.ServiceProvider.GetService(invocableType) is IInvocable invocable) @@ -227,4 +227,4 @@ private async Task InvokeTask(ActionOrAsyncFunc task) } } } -} \ No newline at end of file +} diff --git a/Src/Coravel/Scheduling/Schedule/Interfaces/IScheduler.cs b/Src/Coravel/Scheduling/Schedule/Interfaces/IScheduler.cs index b2174d17..722212b8 100644 --- a/Src/Coravel/Scheduling/Schedule/Interfaces/IScheduler.cs +++ b/Src/Coravel/Scheduling/Schedule/Interfaces/IScheduler.cs @@ -58,10 +58,10 @@ public interface IScheduler /// /// Begin scheduling further tasks on an isolated worker. - /// A worker will run all scheduled tasks on it's own separate thread. + /// A worker will run all scheduled tasks on its own separate thread. /// /// /// IScheduler OnWorker(string workerName); } -} \ No newline at end of file +} diff --git a/Src/Coravel/Scheduling/Schedule/Scheduler.cs b/Src/Coravel/Scheduling/Schedule/Scheduler.cs index c6e2e7c7..befb832d 100644 --- a/Src/Coravel/Scheduling/Schedule/Scheduler.cs +++ b/Src/Coravel/Scheduling/Schedule/Scheduler.cs @@ -190,8 +190,8 @@ async Task Invoke() } /// - /// This will grab all the scheduled tasks and combine each task into it's assigned "worker". - /// Each worker runs on it's own thread and will process it's assigned scheduled tasks asynchronously. + /// This will grab all the scheduled tasks and combine each task into its assigned "worker". + /// Each worker runs on its own thread and will process its assigned scheduled tasks asynchronously. /// This method return a list of active tasks (one per worker - which needs to be awaited). /// /// @@ -223,7 +223,7 @@ private async Task RunWorkersAt(DateTime utcDate, bool isFirstTick) } } - // We want each "worker" (indicated by the "WorkerName" prop) to run on it's own thread. + // We want each "worker" (indicated by the "WorkerName" prop) to run on its own thread. // So we'll group all the "due" scheduled events (the actual work the user wants to perform) into // buckets for each "worker". var groupedScheduledEvents = scheduledWorkers @@ -267,4 +267,4 @@ public ScheduledTask(string workerName, ScheduledEvent scheduledEvent) public string WorkerName { get; set; } } } -} \ No newline at end of file +}