package Ġcom . ree va js . ree va . runtime . promises Ċ Ċ import Ġcom . ree va js . ree va . core . realm . Realm Ċ import Ġcom . ree va js . ree va . runtime . JS Value Ċ import Ġcom . ree va js . ree va . runtime . Operations Ċ import Ġcom . ree va js . ree va . runtime . objects . JS Object Ċ import Ġcom . ree va js . ree va . runtime . objects . Slot Name Ċ Ċ class ĠJ SP romise Object Ġprivate Ġconstructor ( ĊĠĠĠ Ġstate : ĠOperations . Promise State , ĊĠĠĠ Ġresult : ĠJS Value , ĊĠĠĠ Ġrealm : ĠRealm Ċ ) Ġ: ĠJS Object ( realm , Ġrealm . promise Proto ) Ġ{ ĊĠĠĠ Ġvar Ġstate Ġby Ġslot ( Slot Name . Promise State , Ġstate ) ĊĠĠĠ Ġvar Ġresult Ġby Ġslot ( Slot Name . Promise Result , Ġresult ) ĊĊĠĠĠ Ġval Ġfulfill Re actions Ġby Ġslot ( Slot Name . Promise Ful fill Re actions , Ġmutable ListOf < Operations . Promise Reaction >()) ĊĠĠĠ Ġval Ġreject Re actions Ġby Ġslot ( Slot Name . Promise Reject Re actions , Ġmutable ListOf < Operations . Promise Reaction >()) ĊĠĠĠ Ġvar Ġis Handled Ġby Ġslot ( Slot Name . Promise Is Handled , Ġfalse ) ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġfun Ġcreate ( state : ĠOperations . Promise State , Ġresult : ĠJS Value , Ġrealm : ĠRealm ) Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ ĠJ SP romise Object ( state , Ġresult , Ġrealm ). initialize () ĊĠĠĠ Ġ} Ċ } Ċ