This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var items = (await process.InitializeAsync()).ToList(); | |
var runningTasks = new List<Task<Result>>(); | |
foreach (var item in items) | |
{ | |
// Start this item on the thread pool, and hold onto its task | |
runningTasks.Add(Task.Run(async () => await process.ProcessAsync(item))); | |
// If we are at our concurrency limit, await a single task |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
using FluentAssertions; | |
using Xunit; | |
namespace MultiDimensional.Tests | |
{ | |
public enum Dimension |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Created by tully on 10/2/15. | |
// | |
#ifndef HEXPANEL_PLAYLIST_H | |
#define HEXPANEL_PLAYLIST_H | |
#include "FastLED.h" | |
#include <lib8tion.h> |
OlderNewer