跳转到正文

projections API ​

完整接口目录 · 远端 EP用法 · 工具包下载

模块说明 ​

text
Recoverable display projections; effect decisions still use Authority evidence.

Projection ​

python
class Projection

SDK 说明:

text
One atomically replaced baseline, with a synchronous pure delta reducer.

``snapshot`` is a detached ViewSnapshot; its complete flag becomes false as
soon as the underlying Watch loses continuity. ``read`` reopens invalidated
cursors and returns the next baseline or reduced snapshot. No action or
callback is replayed, and incomplete source observations remain incomplete.

Projection.__init__ ​

python
def __init__(self, bus, member, reducer, options)

Projection.open ​

python
@classmethod
async def open(cls, bus, member, reducer, **options)

Projection.snapshot ​

python
@property
def snapshot(self)

Projection.read ​

python
async def read(self)

Projection.__aiter__ ​

python
def __aiter__(self)

Projection.__anext__ ​

python
async def __anext__(self)

Projection.__aenter__ ​

python
async def __aenter__(self)

Projection.__aexit__ ​

python
async def __aexit__(self, *exc)

Projection.close ​

python
async def close(self)

Neomega · 使用、开发与参考文档