Skip to content

Instantly share code, notes, and snippets.

View euclidsoftware's full-sized avatar

Euclid Software, LLC euclidsoftware

View GitHub Profile
import Cocoa
enum CoroutineState {
case Fresh, Running, Blocked, Canceled, Done
}
struct CoroutineCancellation: ErrorType {}
class CoroutineImpl<InputType, YieldType> {
let body: (yield: YieldType throws -> InputType) throws -> Void