import { DeferredAccessStack } from "https://deno.land/x/postgres@v0.19.2/utils/deferred.ts";
The DeferredAccessStack provides access to a series of elements provided on the stack creation, but with the caveat that they require an initialization of sorts before they can be used
Instead of providing a creator
function as you would with the DeferredStack
, you provide
an initialization callback to execute for each element that is retrieved from the stack and a check
callback to determine if the element requires initialization and return a count of the initialized
elements