Versions in this module Expand all Collapse all v1 v1.0.0 Sep 6, 2023 Changes in this version + type PromiseState int + type PromiseStruct struct + func Promise(executor func(resolve func(interface{}), reject func(error))) *PromiseStruct + func (p *PromiseStruct) Catch(fn func(error) interface{}) *PromiseStruct + func (p *PromiseStruct) Then(fn func(interface{}) interface{}) *PromiseStruct + func (promise *PromiseStruct) Await() (interface{}, error) + func (promise *PromiseStruct) Finally(fn func()) *PromiseStruct