Skip to content
This repository has been archived by the owner on Jan 23, 2022. It is now read-only.

Command server and invoker #15

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open

Conversation

darianbr
Copy link
Contributor

No description provided.

use Rinq\Context;
use Rinq\Ident\MessageId;
use Rinq\Ident\PeerId;
use Rinq\Payload;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This payload keeps coming back :P Payloads will just be a mixed type variable.


namespace Rinq\Internal\Command;

use Rinq\CommandHandler;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you decided to just use callable for handlers (?)

/**
* Service is an interface for background tasks that can finish with an error.
*/
interface Service
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know yet, but I don't think this interface will be necessary in PHP.
In Go it's used to wait for several sub-systems that are running in separate threads.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants