2017 © Pedro Peláez
 

library code

Runs callables with a timeout

image

crysalead/code

Runs callables with a timeout

  • Saturday, October 15, 2016
  • by jails
  • Repository
  • 3 Watchers
  • 0 Stars
  • 7,068 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Code - Runs callables with a timeout.

Build Status Code Coverage, (*1)

API

Runs a callable until a timeout is reached:, (*2)

declare(ticks = 1);

Code::run(function(){
    sleep(100);
}, 10);

Runs a callable in loop until a timeout is reached and the return value is false:, (*3)

// declare(ticks = 1); is optionnal when the callable is not blocking on spinning mode

Code::spin(function(){
    sleep(1);
    return false;
}, 10);

The Versions

15/10 2016

dev-master

9999999-dev

Runs callables with a timeout

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by CrysaLEAD

timeout

06/12 2015

2.0.0

2.0.0.0

Runs callables with a timeout

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by CrysaLEAD

timeout

24/11 2015

1.1.1

1.1.1.0

Runs callables with a timeout

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by CrysaLEAD

timeout

17/10 2015

1.1.0

1.1.0.0

Runs callables with a timeout

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by CrysaLEAD

timeout

13/10 2015

1.0.1

1.0.1.0

Runs callables with a timeout

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by CrysaLEAD

timeout

12/10 2015

1.0.0

1.0.0.0

Runs callables with a timeout

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by CrysaLEAD

timeout