Skip to content

alyssais/SwiftAsync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SwiftAsync

No Maintenance Intended

This is a port of async to the Swift programming language.

Currently, the following functions are implemented:

  • each
  • eachSeries
  • each limit:
  • map
  • mapSeries
  • map limit:
  • filter
  • filterSeries
  • filter limit:
  • reject
  • rejectSeries
  • reject limit:
  • reduce
  • reduceRight
  • detect
  • detectSeries
  • detect limit:
  • sortBy
  • sortBySeries
  • sortBy limit:
  • some
  • someSeries
  • some limit:
  • every
  • everySeries
  • every limit:
  • concat
  • concatSeries
  • concat limit:

Usage

Async.map([1, 2, 3], { (n, next) in
	someAsyncFunction(n) { (result) in
		next(result)
	}
}, callback: { (results) in
	// do something with results
})

About

Async control flow handling in Swift

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages