/// <summary> /// Initializes the <see cref="ReactChoreographer"/> instance. /// </summary> public static void Initialize() { if (s_instance == null) { DispatcherHelpers.AssertOnDispatcher(); s_instance = new ReactChoreographer(); } }
/// <summary> /// Disposes the <see cref="ReactChoreographer"/> instance. /// </summary> public static void Dispose() { if (s_instance != null) { DispatcherHelpers.AssertOnDispatcher(); ((IDisposable)s_instance).Dispose(); s_instance = null; } }