billylindeman/swiftgo
Short implementation of goroutines in apple swift
{ "createdAt": "2014-06-09T20:11:21Z", "defaultBranch": "master", "description": "Short implementation of goroutines in apple swift", "fullName": "billylindeman/swiftgo", "homepage": "", "language": "Swift", "name": "swiftgo", "pushedAt": "2017-07-12T15:12:29Z", "stargazersCount": 61, "topics": [], "updatedAt": "2021-06-23T05:29:54Z", "url": "https://github.com/billylindeman/swiftgo"}Goroutines implemented in Apple Swift
Section titled “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?