$/
artifacts/
build/
docs/
lib/
packages/
samples/
src/
tests/
This file contains hidden or 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
public static class ObservableExtensions | |
{ | |
/// <summary> | |
/// Group observable sequence into buffers separated by periods of calm | |
/// </summary> | |
/// <param name="source">Observable to buffer</param> | |
/// <param name="calmDuration">Duration of calm after which to close buffer</param> | |
/// <param name="maxCount">Max size to buffer before returning</param> | |
/// <param name="maxDuration">Max duration to buffer before returning</param> | |
public static IObservable<IList<T>> BufferUntilCalm<T>(this IObservable<T> source, TimeSpan calmDuration, Int32? maxCount=null, TimeSpan? maxDuration = null) |
This file contains hidden or 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
namespace AliasFun | |
{ | |
using MyRecord = System.Tuple<string, int>; | |
public class AnExample | |
{ | |
public void Demonstrating() | |
{ | |
var record = new MyRecord("thing", 42); | |
} |
This file contains hidden or 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
import React, { useReducer } from "react"; | |
interface State { | |
userName: string; | |
password: string; | |
isValid: boolean; | |
} | |
const initialState: State = { | |
userName: "", |