Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Clarify Process::wait() callback behaviour#7099

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
Lilchef wants to merge2 commits intosymfony:3.1fromLilchef:patch-1

Conversation

@Lilchef
Copy link
Contributor

There was no clear description of when the Process::wait() callback was triggered and it seemed like it would be called once the process was complete which is incorrect.

I lost several hours after misunderstanding how this works and then trying to figure out why my 'after process' code was being triggered before the process had finished. Hopefully this change makes it clearer.

There was no clear description of when the Process::wait() callback was triggered and it seemed like it would be called once the process was complete which is incorrect.
$process->wait();
// do things after the process has finished
Copy link
Member

Choose a reason for hiding this comment

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

Please change this to// ... do things after the process has finished

$process = new Process('ls -lsa');
$process->start();

Copy link
Member

Choose a reason for hiding this comment

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

please remove this added trailing whitespace

@wouterj
Copy link
Member

👍 Thanks a lot, seems a lot clearer to me. I've commented 2 minor changes. If you have time, you can fix them, otherwise we'll do it during the merge.

status: reviewed

@Lilchef
Copy link
ContributorAuthor

Great, thanks. I've made the requested changes now.

xabbuh added a commit that referenced this pull requestNov 5, 2016
This PR was submitted for the 3.1 branch but it was merged into the 2.7 branch instead (closes#7099).Discussion----------Clarify Process::wait() callback behaviourThere was no clear description of when the Process::wait() callback was triggered and it seemed like it would be called once the process was complete which is incorrect.I lost several hours after misunderstanding how this works and then trying to figure out why my 'after process' code was being triggered before the process had finished. Hopefully this change makes it clearer.Commits-------d696a15 Clarify Process::wait() callback behaviour
xabbuh added a commit that referenced this pull requestNov 5, 2016
@xabbuh
Copy link
Member

Thank you@Lilchef.

@xabbuhxabbuh closed thisNov 5, 2016
xabbuh added a commit that referenced this pull requestNov 5, 2016
* 2.7:  [#6961] add additional config formats  [#7104] minor typo fix  Fixed minor syntax issues and typos  more precision on class name, and lazy service  add warning about the limitation on using swiftmail with file spool and lazy loading  Removed the proposed note and updated the title  Added note on ODM id notation being different  [#7099] remove trailing whitespaces  Clarify Process::wait() callback behaviour  Minor text fix - wrong submit button label (Forms)  [Doctrine] Slave/Master configuration options  Fix broken link  Fix typo  Add missing parenthesis for methods and a few minor tweaks  [Doctrine] Exception note about functions with named managers
xabbuh added a commit that referenced this pull requestNov 5, 2016
* 2.8:  [#6961] add additional config formats  [#7104] minor typo fix  Fixed minor syntax issues and typos  more precision on class name, and lazy service  add warning about the limitation on using swiftmail with file spool and lazy loading  Removed the proposed note and updated the title  Added note on ODM id notation being different  [#7099] remove trailing whitespaces  Clarify Process::wait() callback behaviour  Minor text fix - wrong submit button label (Forms)  [Doctrine] Slave/Master configuration options  Fix broken link  Fix typo  Add missing parenthesis for methods and a few minor tweaks  [Doctrine] Exception note about functions with named managers
xabbuh added a commit that referenced this pull requestNov 5, 2016
* 3.1:  [#6961] add additional config formats  [#7104] minor typo fix  Fixed minor syntax issues and typos  more precision on class name, and lazy service  add warning about the limitation on using swiftmail with file spool and lazy loading  Removed the proposed note and updated the title  Added note on ODM id notation being different  [#7099] remove trailing whitespaces  Clarify Process::wait() callback behaviour  Remove AssetsHelper from the templating component  Minor text fix - wrong submit button label (Forms)  [Doctrine] Slave/Master configuration options  Fix broken link  Fix typo  Add missing parenthesis for methods and a few minor tweaks  Update input.rst  [Profiler] Fix rst typo  [Doctrine] Exception note about functions with named managers
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@wouterjwouterjwouterj approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@Lilchef@wouterj@xabbuh@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp