Feature request
Open
- Dominant language
- Objective-C
- Stars
- 3.8k
- Forks
- 316
- PR merge metrics
- No merged PRs in 30d
Description
I have this list of promises chained by then, while current then will dispatch async to main to next runloop, while we want the work to be done immediately/inplace when some condition is met.
Say user type on keyboard and triggered the list of promises to be chained, while we want the the work of then to be called synchronously instead of just return. sth like
if(IsOnMain && promise.isFulfilled) { workOfThen()}
Is there a way to expose api like a synchronousThenIfPossible? Thanks
Contributor guide
Assessment
This issue has not been assessed yet.