# HeldCall

A promise that settles when a test says so. Used by the fakes' deferred
mode so latency is driven by the test, never by a timer.

This is an interface exported by `@mapcairn/core`, checked against version 0.2.0.

## Signature

```ts
import type { HeldCall } from "@mapcairn/core";
 
interface HeldCall<T>
```

## Type parameters

- `T`

## Methods

### reject

```ts
reject(error: Error): void;
```

Fails the held call.

- `error` (`Error`)

### resolve

```ts
resolve(value: T): void;
```

Completes the held call successfully.

- `value` (`T`)

Source: [packages/core/src/fakes/internal.ts:9](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/fakes/internal.ts#L9)
