public async void Start() { DBTaskQueue self = this.Get(); while (true) { if (self.Id == 0) { return; } DBTask task = await self.Get(); try { await task.Run(); task.Dispose(); } catch (Exception e) { Log.Error(e.ToString()); } } }
public async void Start() { while (true) { if (this.Id == 0) { return; } DBTask task = await this.Get(); try { await task.Run(); } catch (Exception e) { Log.Error(e.ToString()); } } }
public override async void Start(DBTaskQueue self) { while (true) { if (self.IsDisposed) { return; } DBTask task = await self.Get(); try { await task.Run(); task.Dispose(); } catch (Exception e) { Log.Error(e.ToString()); } } }