fixed: websocket server wrong execution thread

This commit is contained in:
2022-12-25 03:13:01 -08:00
parent f34b05e6ff
commit e9418f4b22
10 changed files with 110 additions and 109 deletions
+2 -2
View File
@@ -9,9 +9,9 @@ public class Executor: TaskScheduler
private Queue<Task> _pendingTasks;
private TaskFactory _taskFactory;
public void Run(Task task)
public void Run(Action action)
{
_taskFactory.StartNew(() => task);
_taskFactory.StartNew(action);
}
public Executor()