Comments (1)
Sorry for the very late. There is no perfect answer to your question. If this is the intended behaviour it can work. But in a semantic point of view this is better to manage the error and the "empty" states differently.
In the catch block you should call reject
instead of resolve
because if there is an issue with the db call you may want manage your workflow app differently.
from awaitkit.
Related Issues (20)
- Main queue is blocked HOT 1
- AwaitKit crashes with PromiseKit 6.3.X HOT 1
- dyld: symbol not found HOT 2
- Trying to await a URLSession request from PromiseKit extensions HOT 1
- Incompatible library version: AwaitKit requires version 1.0.0 or later, but libswiftCore.dylib provides version 0.0.0 HOT 1
- Best practice in multi-thread app HOT 1
- Carthage build pulling in PromiseKit 6.8.x
- XCode 10.2 compatibility HOT 6
- No tagged version with Swift 5 support HOT 1
- Podspec requirement: CorePromise is enough
- Can't install via Swift Package Manager
- AwaitKit causes unit tests to fail HOT 1
- await operation can't work with UIView animation HOT 1
- iOS 12 is the minimum SDK for PromiseKit
- How to convert a function with complete handler to async/await HOT 1
- Installation with CocoaPods Works but with Carthage doesn't by Xcode 12.4
- AwaitKit doesn't compile in Xcode 13 / Swift 5.5 HOT 11
- 🤦🏻♂️
- Priority inversions warning HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from awaitkit.