Skip to content

Conversation

@makasim
Copy link
Contributor

@makasim makasim commented Dec 26, 2016

No description provided.

{
$this->forceStop = $forceStop;
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

What about adding $forceStop = true argument to the constructor and remove the setter altogether?
Events are immutable by nature :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@skafandri In my case I'd like to prevent process exit and continue execution.
That's why I need a setter to change default behaviour

Copy link
Contributor Author

@makasim makasim Dec 27, 2016

Choose a reason for hiding this comment

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

I working on a cli option --time-limit="now + 2 minutes" for a consume command and to make it work I have to set idle time for wait function but it must not exit (as it was before), just return a control back to php.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@skafandri And by the way there are a lot of examples even in symfony source code where events are not immutable. and well honestly saying they are not pure events but more like extension points of the bundle logic.

@makasim
Copy link
Contributor Author

makasim commented Dec 29, 2016

Is there Anything I can do to get it merged?

@skafandri
Copy link
Collaborator

README.md needs to be updated to document the new event

@makasim
Copy link
Contributor Author

makasim commented Jan 3, 2017

@skafandri done.

@skafandri skafandri merged commit dc96d6e into php-amqplib:master Jan 4, 2017
@makasim makasim deleted the idle-handling branch January 4, 2017 12:47
@makasim
Copy link
Contributor Author

makasim commented Jan 25, 2017

@skafandri is there any ETA for a stable release?

@skafandri
Copy link
Collaborator

If I have time, this weekend, but most probably next weekend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants