Add API methods to perform requests out-of-queue

This commit is contained in:
Dean Herbert
2019-11-29 20:03:14 +09:00
parent 4dc8e0ae20
commit c49aeb08c4
8 changed files with 46 additions and 35 deletions

View File

@ -3,6 +3,7 @@
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Game.Users;
@ -56,6 +57,10 @@ namespace osu.Game.Online.API
{
}
public void Perform(APIRequest request) { }
public Task PerformAsync(APIRequest request) => Task.CompletedTask;
public void Register(IOnlineComponent component)
{
Scheduler.Add(delegate { components.Add(component); });