Skip to content

JSPromise(resolver:) usage #156

Closed
@mhavu

Description

@mhavu

Could somebody provide an example of how to use JSPromise(resolver:)? I'm having hard time decoding the following comment in the source code:

Creates a new JSPromise instance from a given resolver closure. resolver takes two closure that your code should call to either resolve or reject this JSPromise instance.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions