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 Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    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 Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraphpregel_executorBackgroundExecutorsubmit
    Methodā—Since v0.6

    submit

    Copy
    submit(
      self,
      fn: Callable[P, T],
      *args: P.args
    View source on GitHub
    =
    (
    )
    ,
    __name__
    :
    str
    |
    None
    =
    None
    ,
    __cancel_on_exit__
    :
    bool
    =
    False
    ,
    __reraise_on_exit__
    :
    bool
    =
    True
    ,
    __next_tick__
    :
    bool
    =
    False
    ,
    **
    kwargs
    :
    P
    .
    kwargs
    =
    {
    }
    )
    ->
    concurrent
    .
    futures
    .
    Future
    [
    T
    ]