Skip to content

AwaitableNode

Canonical path: o6.node.AwaitableNode

AwaitableNode

A node lookup that has not been resolved yet.

Returned by attribute access on an asynchronous client, so that a chain such as await client.objectsNode.server.serverStatus performs one browse per step without awaiting in between. Awaiting it yields the resolved Node; attribute access and calls extend the chain instead.

Functions

__init__

__init__(backend, awaitable)

Wrap a pending lookup. Attribute access on a node creates these.

Parameters:

Name Type Description Default
backend Any

The client or server backend that carries out operations.

required
awaitable Any

The pending node lookup.

required

__await__

__await__()

Resolve the chain and return the Node it reached.

__call__

__call__(*args, **kwargs)

Read or write the resolved node, returning another awaitable step.

Takes the same arguments as Node.__call__, and defers them until the chain is awaited.