Skip to content

[API] Timer.UnsafeCreate #24770

@benaadams

Description

@benaadams

Suggested in dotnet/corefx#26071 (comment)

namespace System.Threading
{
    partial class Timer
    {
        static Timer UnsafeCreate(TimerCallback callback, 
                                  object state, 
                                  TimeSpan dueTime, 
                                  TimeSpan period);
    }
}

Creates a timer that doesn't capture AsyncLocal state (for lazy init for global timers from partially unrelated code)

Related fixes dotnet/corefx#26065, dotnet/corefx#26066, dotnet/corefx#26071, dotnet/corefx#26077, dotnet/corefx#26068

Metadata

Metadata

Assignees

No one assigned

    Labels

    api-needs-workAPI needs work before it is approved, it is NOT ready for implementationarea-System.Threading

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions