| 1 | package SPVM::UV::Handle::Process; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | 1; | ||
| 7 | |||
| 8 | =encoding utf8 | ||
| 9 | |||
| 10 | =head1 Name | ||
| 11 | |||
| 12 | L<SPVM::UV::Handle::Process|SPVM::UV::Handle::Process> - libuv Process Handle | ||
| 13 | |||
| 14 | =head1 Description | ||
| 15 | |||
| 16 | C<UV::Handle::Process> class in L<SPVM> represents a process handle in L<libuv|https://libuv.org/>. See L<uv_process_t|https://docs.libuv.org/en/v1.x/process.html#c.uv_process_t>. | ||
| 17 | |||
| 18 | =head1 Usage | ||
| 19 | |||
| 20 | use UV::Handle::Process; | ||
| 21 | |||
| 22 | =head1 Super Class | ||
| 23 | |||
| 24 | L<UV::Handle|SPVM::UV::Handle> | ||
| 25 | |||
| 26 | =head1 Fields | ||
| 27 | |||
| 28 | =head2 exit_cb | ||
| 29 | |||
| 30 | C<has exit_cb : L<UV::Callback::Exit|SPVM::UV::Callback::Exit>;> | ||
| 31 | |||
| 32 | The exit callback associated with this process handle. | ||
| 33 | |||
| 34 | =head1 Class Methods | ||
| 35 | |||
| 36 | =head2 new | ||
| 37 | |||
| 38 | C<static method new : L<UV::Handle::Process|SPVM::UV::Handle::Process> ();> | ||
| 39 | |||
| 40 | Creates a new L<libuv process handle|https://docs.libuv.org/en/v1.x/process.html#c.uv_process_t>. | ||
| 41 | |||
| 42 | =head1 Instance Methods | ||
| 43 | |||
| 44 | =head2 pid | ||
| 45 | |||
| 46 | C<method pid : int ();> | ||
| 47 | |||
| 48 | Gets the process ID (PID). See L<uv_process_t#pid|https://docs.libuv.org/en/v1.x/process.html#c.uv_process_t>. | ||
| 49 | |||
| 50 | =head2 kill | ||
| 51 | |||
| 52 | C<method kill : int ($signum : int);> | ||
| 53 | |||
| 54 | Sends a signal to the process. See L<uv_process_kill|https://docs.libuv.org/en/v1.x/process.html#c.uv_process_kill>. | ||
| 55 | |||
| 56 | =head2 DESTROY | ||
| 57 | |||
| 58 | C<method DESTROY : void ();> | ||
| 59 | |||
| 60 | Destroys the process handle and releases its resources. | ||
| 61 | |||
| 62 | =head1 Repository | ||
| 63 | |||
| 64 | Yuki Kimoto C<kimoto.yuki@gmail.com> | ||
| 65 | |||
| 66 | =head1 Copyright & License | ||
| 67 | |||
| 68 | Copyright (c) 2026 Yuki Kimoto | ||
| 69 | |||
| 70 | MIT License |