{"id":89978,"library":"react-promise-timer","title":"ReactPHP Promise Timer","description":"A trivial implementation of timeouts for Promises, built on top of ReactPHP.","status":"active","version":"1.11.0","language":"php","source_language":null,"source_url":"https://github.com/reactphp/promise-timer","tags":["reactphp","promise","timer","async","timeout"],"install":[{"cmd":"composer require react/promise-timer","lang":"bash","label":"composer require"}],"dependencies":[],"imports":[{"symbol":"TimeoutException","correct":"use React\\Promise\\Timer\\TimeoutException;"}],"quickstart":{"code":"use React\\Promise\\Timer;\n\n$promise = someAsyncOperation();\n$timeout = Timer\\timeout($promise, 5.0);\n$timeout->then(function ($result) {\n    // handle result\n}, function (\\Exception $e) {\n    // handle timeout or error\n});","lang":"php","description":"Add a timeout to an async promise using ReactPHP's event loop."},"warnings":[{"fix":"Ensure you have an event loop running (e.g., Loop::run()).","message":"Requires ReactPHP event loop to be running","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"search_vec":"'async':19 'built':11 'implement':6 'promis':2,10,17 'reactphp':1,15,16 'timeout':8,20 'timer':3,18 'top':13 'trivial':5","created_at":"2026-06-19T08:55:57.229817+00:00","updated_at":"2026-06-19T08:55:57.229817+00:00","problems":[],"ecosystem":"packagist","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/reactphp/promise-timer","github":"https://github.com/reactphp/promise-timer","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["async","utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-19","next_check":"2026-12-16","install_tag":null}}