… | |
… | |
21 | as members, but is more efficiently managed. |
21 | as members, but is more efficiently managed. |
22 | |
22 | |
23 | This is useful if you want to allow parallel tasks to run in parallel but |
23 | This is useful if you want to allow parallel tasks to run in parallel but |
24 | not on the same problem. Just use a SemaphoreSet and lock on the problem |
24 | not on the same problem. Just use a SemaphoreSet and lock on the problem |
25 | identifier. |
25 | identifier. |
|
|
26 | |
|
|
27 | You don't have to load C<Coro::SemaphoreSet> manually, it will be loaded |
|
|
28 | automatically when you C<use Coro> and call the C<new> constructor. |
26 | |
29 | |
27 | =over 4 |
30 | =over 4 |
28 | |
31 | |
29 | =cut |
32 | =cut |
30 | |
33 | |