Skip to content

Instantly share code, notes, and snippets.

View fgasperij's full-sized avatar
🌀
|-|^-|_-|_|_^-|_|

Fernando Gasperi fgasperij

🌀
|-|^-|_-|_|_^-|_|
View GitHub Profile
@fgasperij
fgasperij / BufferBroadcastBlock.cs
Created March 13, 2017 22:09
BufferBroadcastBlock
public class BufferBroadcastBlock<T> : ITargetBlock<T>
{
public class Target
{
public bool propagateCompletion { get; set; }
public ITargetBlock<T> target { get; set; }
public Target(ITargetBlock<T> aTarget, bool completion)
{
target = aTarget;
@fgasperij
fgasperij / Program.cs
Last active February 24, 2017 20:31
Dataflow PropagateCompletion test
using System;
using System.Linq;
using System.Threading.Tasks.Dataflow;
using System.Threading;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
@fgasperij
fgasperij / Program.cs
Created February 23, 2017 23:49
BroadcastBlock behavior test
using System;
using System.Linq;
using System.Threading.Tasks.Dataflow;
using System.Threading;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
# Entries
# [
# {
# "id": 171009,
# "worker_id": 10,
# "record": "some work",
# "worked_at": "2013-09-02",
# "hours": 6,
# "client_id": 11,
# "project_id": 30,

Keybase proof

I hereby claim:

  • I am fgasperij on github.
  • I am fgasperi (https://keybase.io/fgasperi) on keybase.
  • I have a public key ASCzaws4zi6Ybg_7mWSDD8xw9Q48kEc1JY7V8oK4dJdqfAo

To claim this, I am signing this object: