Skip to content

Instantly share code, notes, and snippets.

View dawedawe's full-sized avatar

dawe dawedawe

View GitHub Profile
@TheAngryByrd
TheAngryByrd / StubBuilderCE.fs
Last active August 19, 2024 21:52
Computation Expression Stub for F#
open System
// Replace with your type
type MyType<'a> = Async<'a>
type Internal<'a> = MyType<'a>
// Replace with types that feel similar and can be converted to `MyType`
type External1<'a> = System.Threading.Tasks.Task<'a>
type External2<'a> = System.Threading.Tasks.ValueTask<'a>