Skip to content

Instantly share code, notes, and snippets.

View dVakulen's full-sized avatar

Dmytro Vakulenko dVakulen

View GitHub Profile
[2015-11-18 18:39:57.582 GMT 9 INFO 100000 Runtime.Scheduler.WorkerPoolThread/0 127.0.0.1:22222] Starting AsyncAgent Runtime.Scheduler.WorkerPoolThread/0 on managed thread 9
[2015-11-18 18:39:57.582 GMT 13 INFO 100000 Runtime.Scheduler.WorkerPoolThread/System.5 127.0.0.1:22222] Starting AsyncAgent Runtime.Scheduler.WorkerPoolThread/System.5 on managed thread 13
[2015-11-18 18:39:57.583 GMT 11 INFO 100000 Runtime.Scheduler.WorkerPoolThread/2 127.0.0.1:22222] Starting AsyncAgent Runtime.Scheduler.WorkerPoolThread/2 on managed thread 11
[2015-11-18 18:39:57.583 GMT 10 INFO 100000 Runtime.Scheduler.WorkerPoolThread/1 127.0.0.1:22222] Starting AsyncAgent Runtime.Scheduler.WorkerPoolThread/1 on managed thread 10
[2015-11-18 18:39:57.583 GMT 12 INFO 100000 Runtime.Scheduler.WorkerPoolThread/3 127.0.0.1:22222] Starting AsyncAgent Runtime.Scheduler.WorkerPoolThread/3 on managed thread 12
[2015-11-18 18:39:57.585 GMT 14 INFO 100000 Runtime.Messaging.IncomingMessageAcceptor 127
internal static Task<T> ConvertTaskToTcs<T>(Task<T> task, TaskCompletionSource<object> resolver)
{
if (task == null)
{
resolver.TrySetResult(default(T));
return;
}
if (task.Status == TaskStatus.RanToCompletion)
{
using System;
using System.Collections.Generic;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Configs;
using BenchmarkDotNet.Jobs;
using BenchmarkDotNet.Running;
namespace Benchmark
{
internal static class Program
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Configs;
using BenchmarkDotNet.Jobs;
using BenchmarkDotNet.Running;
@dVakulen
dVakulen / sql
Last active January 20, 2017 13:27
var memberNameStart = parent.IndexOf("&", StringComparison.InvariantCulture);
if (memberNameStart != -1)
{
var ownerAxis = (_report.Axes as ReportAxes).GetAxisByMember(parent);
var parents = parent.Substring(memberNameStart)
.Replace("&", string.Empty)
.Replace(".", string.Empty)
.Replace("[", string.Empty)
.Replace("]", string.Empty);
parent = ownerAxis.Dimension.HierarchyName + ".";
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Orleans.Runtime.Scheduler;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Orleans.Runtime.Scheduler
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Serialization.Formatters.Binary;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp3
{
// https://stackoverflow.com/questions/46467275/weird-stack-trace-growth-with-async-await-and-taskcompletionsource
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Reflection.Emit;
using System.Runtime.CompilerServices;
using System.Runtime.ExceptionServices;
@dVakulen
dVakulen / gist:378192c886b13f479345bd18ed4b77cf
Created November 2, 2017 13:33
- plan - become a future. requirements - MVC focus and performance.
.