Skip to content
Fairly monadic swift Future library
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
FutureResult
TinyFuture.xcodeproj
TinyFuture
Activity.swift
Future+gather.swift
Future+map.swift
Future.swift
FutureTests.swift
README.md
Result+gather.swift

README.md

TinyFuture

A small library implementing a capable generic Future.

Goals

  • Future is "monadic", so support's map and flatMap. Also supports gather as a convenience to combine several Future toegether.
  • Future does not bake in support for errors handling or cancelation. A client should instead achieve this by placing a Result in to a Future.
  • Do not provide lots of wrappers for existing system functions – these should be seperate.
  • Make it trivial to wrap any function with an asynchronous completion block.
  • Make it very easy to transform and combine together things that are wrapped in a Future
  • A small and easily learned, but complete and powerful API.
  • Consumers of Future should not feel an urge to "unwrap" it and use its internals.

Todo

Properly package as a Pod or something?

Actually use it for something. There are tests, and pascal attepts to do some exciting things with a Future, but it's not definitely not realistic usage.

You can’t perform that action at this time.