PHPackages                             innmind/async-time-warp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. innmind/async-time-warp

Abandoned → [innmind/mantle](/?search=innmind%2Fmantle)ArchivedLibrary

innmind/async-time-warp
=======================

1.0.0(3y ago)0836↓100%MITPHPPHP ~8.1

Since Feb 11Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Innmind/async-time-warp)[ Packagist](https://packagist.org/packages/innmind/async-time-warp)[ Docs](http://github.com/innmind/async-time-warp)[ RSS](/packages/innmind-async-time-warp/feed)WikiDiscussions develop Synced today

READMEChangelogDependencies (6)Versions (3)Used By (0)

Async TimeWarp
==============

[](#async-timewarp)

[![Build Status](https://github.com/innmind/async-time-warp/workflows/CI/badge.svg?branch=main)](https://github.com/innmind/async-time-warp/actions?query=workflow%3ACI)[![codecov](https://camo.githubusercontent.com/bd38d8f9ba34323317f01e0cd1ea9943ae375d1a0b0faa2328d531505edc605c/68747470733a2f2f636f6465636f762e696f2f67682f696e6e6d696e642f6173796e632d74696d652d776172702f6272616e63682f646576656c6f702f67726170682f62616467652e737667)](https://codecov.io/gh/innmind/async-time-warp)[![Type Coverage](https://camo.githubusercontent.com/2ec6615e86169192cb111f62906ad77ba5cc1ccc4c539d4bc87da6e38ed3b96c/68747470733a2f2f73686570686572642e6465762f6769746875622f696e6e6d696e642f6173796e632d74696d652d776172702f636f7665726167652e737667)](https://shepherd.dev/github/innmind/async-time-warp)

Async implementation of [`innmind/time-warp`](https://packagist.org/packages/innmind/time-warp) to allow switching to another task when halting the current process.

Installation
------------

[](#installation)

```
composer require innmind/async-time-warp
```

Usage
-----

[](#usage)

```
use Innmind\Async\TimeWarp\Halt;
use Innmind\TimeContinuum\Earth\{
    Clock,
    Period\Second,
};
use Innmind\Mantle\{
    Source\Predetermined,
    Suspend,
    Forerunner,
};

$clock = new Clock;
$source = Predetermined::of(
    static function(Suspend $suspend) use ($clock) {
        $halt = Halt::of($clock, $suspend);

        $halt(new Second(2));

        echo 'World !';
    },
    static function(Suspend $suspend) use ($clock) {
        $halt = Halt::of($clock, $suspend);

        $halt(new Second(1));

        echo 'Hello ';
    },
);

Forerunner::of($clock)(null, $source); // will print "Hello World !" in 2 seconds
```

###  Health Score

27

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1135d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/851425?v=4)[Baptiste Langlade](/maintainers/Baptouuuu)[@Baptouuuu](https://github.com/Baptouuuu)

---

Top Contributors

[![Baptouuuu](https://avatars.githubusercontent.com/u/851425?v=4)](https://github.com/Baptouuuu "Baptouuuu (8 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/innmind-async-time-warp/health.svg)

```
[![Health](https://phpackages.com/badges/innmind-async-time-warp/health.svg)](https://phpackages.com/packages/innmind-async-time-warp)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
