using System.Threading.Tasks;

namespace XRTK.Utilities.Async.AwaitYieldInstructions
{
    /// <summary>
    /// Helper class for continuing executions on a background thread.
    /// </summary>
    public class BackgroundThread
    {
        public static ConfiguredTaskAwaitable.ConfiguredTaskAwaiter GetAwaiter()
        {
            return Task.Run(() => { }).ConfigureAwait(false).GetAwaiter();
        }