Skip to content
This repository was archived by the owner on Jul 3, 2022. It is now read-only.

Commit fa66fa1

Browse files
authored
Announce EOL
1 parent 84be2bb commit fa66fa1

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

+18
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,24 @@
11
BrightFutures
22
=============
33

4+
BrightFutures has reached end-of-life. After a long period of limited development activity, Swift's Async/Await has made the library obsolete. Please consider migrating from BrightFutures to async/await. When you do so, the async `get()` method will prove to be useful:
5+
6+
```swift
7+
// in an async context...
8+
9+
let userFuture = User.logIn(username, password)
10+
let user = try await userFuture.get()
11+
12+
// or simply:
13+
let posts = try await Posts.fetchPosts(user).get()
14+
```
15+
16+
17+
18+
The remainder of the README has not been updated recently, but is preserved for historic reasons.
19+
20+
---
21+
422
How do you leverage the power of Swift to write great asynchronous code? BrightFutures is our answer.
523

624
BrightFutures implements proven [functional concepts](http://en.wikipedia.org/wiki/Futures_and_promises) in Swift to provide a powerful alternative to completion blocks and support typesafe error handling in asynchronous code.

0 commit comments

Comments
 (0)