summaryrefslogtreecommitdiff
path: root/modules/mono/glue/Managed/Files/Dispatcher.cs
blob: 072e0f20ff209f36da9458f8aef10b076972ca34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
using System.Runtime.CompilerServices;

namespace Godot
{
    public static class Dispatcher
    {
        [MethodImpl(MethodImplOptions.InternalCall)]
        private static extern GodotTaskScheduler godot_icall_DefaultGodotTaskScheduler();

        public static GodotSynchronizationContext SynchronizationContext =>
            godot_icall_DefaultGodotTaskScheduler().Context;
    }
}