略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: Swoole\Process

2024-11-14

The Swoole\Process class

(PECL swoole >= 1.9.0)

简介

类摘要

class Swoole\Process {
/* Constants */
const int IPC_NOWAIT = 256;
/* 方法 */
public static alarm(int $interval_usec): void
public close(): void
public static daemon(bool $nochdir = ?, bool $noclose = ?): void
public __destruct(): void
public exec(string $exec_file, string $args): ReturnType
public exit(string $exit_code = ?): void
public freeQueue(): void
public static kill(int $pid, int $signal_no = ?): bool
public name(string $process_name): bool
public pop(int $maxsize = ?): mixed
public push(string $data): bool
public read(int $maxsize = ?): string
public static signal(string $signal_no, callable $callback): void
public start(): void
public statQueue(): array
public useQueue(int $key, int $mode = ?): bool
public static wait(bool $blocking = ?): array
public write(string $data): int
}

预定义常量

Swoole\Process::IPC_NOWAIT

目录

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/class.swoole-process.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3