ConnectionOptions constructor

ConnectionOptions(
  1. {required int attempts,
  2. int nextInterval(
    1. int previousInterval
    )?,
  3. int? interval}
)

deno-postgres@v0.17.0/ConnectionOptions.

Implementation

factory ConnectionOptions({
  required int attempts,
  int Function(int previousInterval)? nextInterval,
  int? interval,
}) {
  return jsify(
    PartialConnectionOptions(
      attempts: attempts,
      nextInterval: nextInterval,
      interval: interval,
    ).asMap(),
  ) as ConnectionOptions;
}