Sanity Library Reference Docs
    Preparing search index...

    Interface InvokeFunctionOptions

    interface InvokeFunctionOptions {
        sync?: boolean;
    }
    Index

    Properties

    Properties

    sync?: boolean

    Wait for the function to finish and resolve with its return value.

    Defaults to false: the invocation is started, the request resolves as soon as it is accepted, and the value is always undefined. Only function types that support running inline can be invoked synchronously.