Class: LastEventValue<T>

这是一个异步值的接口,它包含了一个value字段和一个resolved字段 value字段表示异步操作的结果,resolved字段表示异步操作是否已经完成

Type parameters

Name
T

Implements

Table of contents

Constructors

Properties

Accessors

Constructors

constructor

new LastEventValue<T>(eventSource, scope?)

Type parameters

Name
T

Parameters

Name Type
eventSource EventRegistry<T>
scope? Scope

Properties

hasFirstEventArrived

Private hasFirstEventArrived: any


lastEvent

Private lastEvent: any


startObserving

Private startObserving: any

Accessors

resolved

get resolved(): boolean

Returns

boolean

Implementation of

AsyncValue.resolved


value

get value(): null | T

Returns

null | T

Implementation of

AsyncValue.value