billylindeman / swiftgo

Short implementation of goroutines in apple swift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Goroutines implemented in Apple Swift

This is a small example of using trailing closures, custom operators, and generics in swift.

I've implemented a very basic version of the "go" keyword from golang, as well as the typed channel interface

DISCLAIMER: Don't actually use this for anything. I wrote this on the plane ride back from WWDC out of curiosity and boredom.

TODO: Is it possible to implement the select keyword from golang?

About

Short implementation of goroutines in apple swift


Languages

Language:Swift 100.0%