Skip to main content

straightMadeFlopToRiverExactProbabilityAsync

straightMadeFlopToRiverExactProbabilityAsync(heroHoleCards: CardInput, flopThree: CardInput, knownDead: CardInput, options?: AsyncOptions): Promise<number>

Import

const poker = require('poker-calculations');

ESM (Node):

import { createRequire } from 'module';
const require = createRequire(import.meta.url);
const poker = require('poker-calculations');

When to use

Async sibling of straightMadeFlopToRiverExactProbability. Optional AsyncOptions for AbortSignal cancellation.

How to use

const poker = require('poker-calculations');

const p = await poker.straightMadeFlopToRiverExactProbabilityAsync(hole, flop, dead);

const ac = new AbortController();
const pending = poker.straightMadeFlopToRiverExactProbabilityAsync(hole, flop, dead, {
signal: ac.signal,
});
// ac.abort(); // Promise rejects with AbortError

See also

straightMadeFlopToRiverExactProbability · AsyncOptions