amphp / amphp/parallel

Measure the running time of a thread

Open
#178 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
PHP
Stars
859
Forks
69
PR merge metrics
No merged PRs in 30d

Description

Hello there!

  1. Does the package have an analog of map method but for thread beginning? I want to measure the time the thread spends but cannot find a way to catch the beginning of the thread run.
  2. Which differences between methods map and finally? It looks slightly more logical to use finally, but it doesn't pass the task object in the callback. Could you please clarify this moment?

Thanks!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the package documentation and the map and finally APIs named in the issue, focusing on callback arguments and thread lifecycle. Determine whether the documented API supports measuring thread runtime, then clarify the distinction or identify the documentation gap. The issue names no files or tests, so repository-wide search is required.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend, distributed-systems, documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.