LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
    • Overview
    • Graphs
    • Functional API
    • Pregel
    • Checkpointing
    • Storage
    • Caching
    • Types
    • Runtime
    • Config
    • Errors
    • Constants
    • Channels
    • Agents
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    OverviewGraphsFunctional APIPregelCheckpointingStorageCachingTypesRuntimeConfigErrorsConstantsChannelsAgents
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraphpregel_runnerFuturesDict
    Class●Since v0.6

    FuturesDict

    Copy
    FuturesDict(
      self,
      event: E,
      callback: weakref.ref[Callable[[PregelExecutableTask, BaseException | None], None]],
      future_type: type[F]
    )

    Bases

    Generic[F, E]dict[F, PregelExecutableTask | None]

    Constructors

    constructor
    __init__
    NameType
    eventE
    callbackweakref.ref[Callable[[PregelExecutableTask, BaseException | None], None]]
    future_typetype[F]

    Attributes

    attribute
    event: E
    attribute
    callback: weakref.ref[Callable[[PregelExecutableTask, BaseException | None], None]]
    attribute
    counter: int
    attribute
    done: set[F]
    attribute
    lock: threading.Lock

    Methods

    method
    on_done
    View source on GitHub