Don't lambda the lambda unless the lambda lambdas you

    Date: 04/05/14 (Code WTF)    Keywords: no keywords

    // C#, .NET Framework 4.0 (or 4.5, with the same result)
    
            private void ExecuteOnWorkerThread(Action action)
            {
                Task.Factory.StartNew(()=>action, CancellationToken.None, TaskCreationOptions.PreferFairness, TaskScheduler.Default);
            }

    Source: https://code-wtf.livejournal.com/219440.html

« Печатаем имя... || Найдено в коде... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home