1
0
mirror of https://github.com/danog/amp.git synced 2024-11-26 20:15:00 +01:00
Commit Graph

39 Commits

Author SHA1 Message Date
umbri
abe92a78ad Add basic promise examples (#179) 2017-11-08 14:01:26 +01:00
Niklas Keller
19113ed5f1 Add example cross-ref to amphp/socket
amphp/amp is the base library, but people should be aware of the abstractions provided instead of directly using Loop::on* if possible.
2017-10-30 21:56:31 +01:00
Niklas Keller
361b6cefbb Fix code style 2017-09-20 17:50:00 +02:00
Niklas Keller
f2a662534e Improve exception examples 2017-09-20 17:34:20 +02:00
umbri
bb34b9fb2d Added exception examples 2017-09-20 17:26:07 +02:00
Niklas Keller
31f021e59a Add coroutine concurrency example 2017-06-04 16:12:46 +02:00
Niklas Keller
50b37b23ef Add asyncCall 2017-05-03 15:21:49 +02:00
Niklas Keller
3c0d4153c7 🚚 Rename basic examples directory to event-loop 2017-05-02 18:36:02 +02:00
Niklas Keller
1b1ea5688c Add signal and stdin examples 2017-05-02 13:32:58 +02:00
Niklas Keller
2a5600f027 Use asyncCoroutine instead of manual rethrow + new Coroutine 2017-05-02 13:11:52 +02:00
Niklas Keller
c29da96f3e Fix remaining Pause → Delayed in examples and docs 2017-05-02 07:25:22 +02:00
Aaron Piotrowski
da9b724f5b getIterator → iterate 2017-05-02 07:07:43 +02:00
Aaron Piotrowski
45481a710c Squash leftover Stream references 2017-05-02 07:07:33 +02:00
Aaron Piotrowski
0d2095e14d Rename examples directory 2017-05-02 07:07:20 +02:00
Aaron Piotrowski
38d53304ae Stream → Iterator 2017-05-02 07:07:20 +02:00
Aaron Piotrowski
4935dddc84 Refactor Streams
Dropped original Stream interface in favor of the Iterator interface. Eliminates subscriber timing issues and simplifies Stream usage.
2017-05-02 07:04:10 +02:00
Niklas Keller
1286087c06 Rename Pause to Delayed
Pause doesn't cover the delayed value use case.
2017-05-02 07:02:02 +02:00
Niklas Keller
79ab41e5bf Update php-cs-fixer to version 2 and upgrade rules
This also fixes the code style according to the new rules.
2017-04-24 16:22:02 +02:00
Niklas Keller
689502c0ee Apply code style rules also to examples 2017-04-24 15:27:04 +02:00
Niklas Keller
5e545301cd Rename Listener to StreamIterator 2017-04-13 18:20:46 +02:00
Niklas Keller
2aa91a6c25 Rename Stream::listen to Stream::onEmit 2017-03-21 18:29:51 +01:00
Niklas Keller
ce269fa516 Rename Promise::when to Promise::onResolve, resolves #77 2017-03-21 17:23:37 +01:00
Niklas Keller
0649fdc618 Add structure to examples, add basic timer example 2017-03-12 19:54:52 +01:00
Niklas Keller
9797e7a4d0 Rename example to examples 2017-03-12 19:47:08 +01:00
Daniel Lowrey
c3298f104a remove examples 2015-07-22 09:09:17 -04:00
Daniel Lowrey
ff893fa784 Update examples 2015-05-20 15:19:31 -04:00
Grégoire Pineau
01d50d10f9 Fixex typos 2015-02-05 18:17:05 +01:00
Douglas G.R
4092730b74 Asyncronously read from client and broadcast to others.
echo server example (run in terminal):
  - start the service
  php 007_broadcast_server.php

  - Connect to 127.0.0.1 at port 1337 from various terminals;
  nc 127.0.0.1 1337

  - Type in anything and press ENTER; Reactor will asyncronously read
    from client and broadcast to others.
2014-12-26 17:59:51 -02:00
Douglas G.R
badb741c81 Should use Amp\run directly instead of Amp\getReactor()->run.
- Amp\run implicitly creates the reactor.
2014-12-26 15:41:25 -02:00
Douglas G.R
4c791d5952 Fix all deprecated warnings in examples. 2014-12-26 15:29:51 -02:00
Daniel Lowrey
7064ec5dc8 Migrate repo to amphp/amp 2014-09-23 00:06:03 -04:00
Daniel Lowrey
3a5c673471 Add libuv signal handling example 2014-08-06 16:01:40 -04:00
Daniel Lowrey
202f8a077c Update examples 2014-08-02 01:35:42 -04:00
Daniel Lowrey
c3650dce88 Fixed really epic syntax fail 2014-08-02 01:09:07 -04:00
Daniel Lowrey
16190c9b32 Improved composer support 2014-07-22 13:47:22 -04:00
Daniel Lowrey
ad968a8fac Added simple server example 2014-07-14 12:56:35 -04:00
Daniel Lowrey
885969ff84 Time intervals now expressed in milliseconds (was seconds) 2014-03-07 12:02:03 -05:00
Daniel Lowrey
861cb58023 File structure reorganization 2014-03-06 09:53:16 -05:00
Daniel Lowrey
d65224aeb3 Initial release commit 2013-08-07 00:17:57 -04:00