High-quality source code, easy implementation

Overview

EasyPromise

how use

testEasyPromise") EasyPromise().then { observer, result in print("task 1", result) observer.next("result 1") }.then { observer, result in print("task 2", result) observer.next("result 2") }.then { observer, result in print("task 3", result) observer.next("result 3") }.catchError { error in print("error >>", error) }.finalFinish { print("normal finish") } } ">
func testEasyPromise() {
    print("Demo> testEasyPromise")
    EasyPromise().then { observer, result in
        print("task 1", result)
        observer.next("result 1")
    }.then { observer, result in
        print("task 2", result)
        observer.next("result 2")
    }.then { observer, result in
        print("task 3", result)
        observer.next("result 3")
    }.catchError { error in
        print("error >>", error)
    }.finalFinish {
        print("normal finish")
    }
}
Demo> testEasyPromise
task 1 nil
task 2 Optional("result 1")
task 3 Optional("result 2")
normal finish
You might also like...
An alternative to using the native UIAlertController, with a thoughtful design and simple implementation.
An alternative to using the native UIAlertController, with a thoughtful design and simple implementation.

HPAlertController An alternative to using the native UIAlertController, with a thoughtful design and simple implementation. Requirements iOS 15.0 and

An example implementation of using a native iOS Notification Service Extension (to display images in remote push notification) in Titanium.

Titanium iOS Notification Service Extension An example implementation of using a native iOS Notification Service Extension (to display images in remot

Start your next Open-Source Swift Framework 📦
Start your next Open-Source Swift Framework 📦

SwiftKit enables you to easily generate a cross platform Swift Framework from your command line. It is the best way to start your next Open-Source Swi

A Simple way help you drop or drag your source (like UIImage) between different App.

A Simple way help you drop or drag your source (like UIImage) between different App.

 Open-source jailbreaking tool for many iOS devices
Open-source jailbreaking tool for many iOS devices

Open-source jailbreaking tool for many iOS devices *Read disclaimer before using this software. checkm8 permanent unpatchable bootrom exploit for hund

A free and open source xkcd comic reader for iOS.
A free and open source xkcd comic reader for iOS.

A free, ad-free, open-source, native, and universal xkcd.com reader for iOS. Download it from the app store now! Architecture AFNetworking for network

Collaborative List of Open-Source iOS Apps

Open-Source iOS Apps A collaborative list of open-source iOS, iPadOS, watchOS and tvOS apps, your contribution is welcome 😄 Jump to Apple TV Apple Wa

Joplin - an open source note taking and to-do application with synchronization capabilities for Windows, macOS, Linux, Android and iOS. Forum: https://discourse.joplinapp.org/
Joplin - an open source note taking and to-do application with synchronization capabilities for Windows, macOS, Linux, Android and iOS. Forum: https://discourse.joplinapp.org/

Joplin® is a free, open source note taking and to-do application, which can handle a large number of notes organised into notebooks. The notes are sea

Beam: the open source Reddit client for iOS
Beam: the open source Reddit client for iOS

Beam for Reddit An open source Reddit client for iOS. Introduction Hi, we're Awkward. In 2014, we started working on a Reddit client called Beam. In t

Owner
T.M
Left hand code, right hand life
T.M
High readable code with SFSymbols

High-readable code with SFSymbols

Yusuke Hosonuma 12 Oct 8, 2022
Open-source implementation of Apple's Combine for processing values over time

CombineX 简体中文 Open-source implementation of Apple's Combine for processing values over time. Though CombineX have implemented all the Combine interfac

Luo Xiu 1 Dec 30, 2021
SwiftTypeReader - You can gather type definitions from Swift source code.

SwiftTypeReader - You can gather type definitions from Swift source code.

omochimetaru 23 Dec 12, 2022
The source code to the civic tech project Öppna Skolplattformen.

Give us a ⭐ if you appreciate what we do! Öppna skolplattformen We are parents who got fed up with Skolplattformen, the City of Stockholm's school adm

Skolplattformen.org 784 Dec 29, 2022
The source code to How to build a news app with react native 📰

Royal News · The source code to How to build a news app with react native article on NimreyCode, medium, and dev.to. Requirements: Android Studio or X

Mohammed Salman 96 Aug 16, 2022
Gett's Design System code generator. Use Zeplin Styleguides as your R&D's Single Source of Truth.

Prism is a Design System code generator developed by the team at Gett ?? . Synchronizing design teams with engineering teams is a huge challenge. As t

Gett 346 Dec 31, 2022
ESP source code for Free Fire (iOS jailbreak)

ESP FreeFire ESP source code for Free Fire (iOS jailbreak, Free Fire version: 1.93.1). This source is for learning purpose only, please do not use it

Huy Nguyen 11 Dec 25, 2022
Compare your implementation and design, see how much they match!

DesignDetective Preview Usage You may trigger anywhere, but I personally prefer using it via Shake Gesture import DesignDetective extension UIWindow

Enes Karaosman 43 Dec 13, 2022
Flutter package for detecting NSFW images and videos using native implementation

Flutter NSFW 1- Download, tflite modle and put it in assets folder 2 - Add the path of the tfliet to pubspec.yaml 3 - Read the file using path_provide

Syed Ahsan Ali 8 Oct 16, 2022
WobbleView is an implementation of a recently popular wobble effect for any view in your app

WobbleView is an implementation of a recently popular wobble effect for any view in your app. It can be used to easily add dynamics to user interactions and transitions.

intent 2.2k Nov 29, 2022