Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/neo4j_lite_client/core/result.ts>default#then

Unofficial Neo4j Driver for Deno
Latest
method default.prototype.then
import { default } from "https://deno.land/x/neo4j_lite_client@4.4.6/core/result.ts";

Waits for all results and calls the passed in function with the results.

Should not be combined with Result#subscribe function.

Type Parameters

optional
TResult1 = QueryResult
optional
TResult2 = never

Parameters

optional
onFulfilled: ((value: QueryResult) => TResult1 | PromiseLike<TResult1>) | null
optional
onRejected: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null

Returns

Promise<TResult1 | TResult2>

promise.