Skip to content

Commit

Permalink
rename builtins
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadim Sadokhov committed Oct 25, 2024
1 parent 4b0924c commit 1ed5fa2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions builtin-functions/kphp-light/job-workers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ class KphpJobWorkerResponseError implements KphpJobWorkerResponse {
}

/** @kphp-extern-func-info interruptible */
function k2_job_worker_start(string $request, float $timeout): future<string> | false;
function job_worker_send_request(string $request, float $timeout): future<string> | false;
/** @kphp-extern-func-info interruptible */
function k2_job_worker_start_no_reply(string $request, float $timeout): bool;
function job_worker_send_noreply_request(string $request, float $timeout): bool;
/** @kphp-extern-func-info interruptible */
function k2_job_worker_start_multi(string[] $request, float $timeout): (future<string> | false)[];
function job_worker_send_multi_request(string[] $request, float $timeout): (future<string> | false)[];
/** @kphp-extern-func-info interruptible */
function k2_job_worker_fetch_request(): string;
function job_worker_fetch_response(): string;
/** @kphp-extern-func-info interruptible */
function k2_job_worker_store_response(string $response): int;
function job_worker_store_response(string $response): int;

function is_kphp_job_workers_enabled(): bool;

Expand Down
8 changes: 4 additions & 4 deletions builtin-functions/kphp-light/rpc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ final class KphpRpcRequestsExtraInfo {
}

/** @kphp-extern-func-info interruptible */
function k2_kphp_rpc_tl_query($actor ::: string, $arr ::: array, $timeout ::: float = -1.0, $ignore_answer ::: bool = false, \KphpRpcRequestsExtraInfo $requests_extra_info = null, $need_responses_extra_info ::: bool = false) ::: int[];
function rpc_send_request($actor ::: string, $arr ::: array, $timeout ::: float, $ignore_answer ::: bool, \KphpRpcRequestsExtraInfo $requests_extra_info, $need_responses_extra_info ::: bool) ::: int[];

/** @kphp-extern-func-info interruptible */
function k2_kphp_typed_rpc_tl_query($actor ::: string, @tl\RpcFunction[] $query_functions, $timeout ::: float = -1.0, $ignore_answer ::: bool = false, \KphpRpcRequestsExtraInfo $requests_extra_info = null, $need_responses_extra_info ::: bool = false) ::: int[];
function rpc_send_typed_query_request($actor ::: string, @tl\RpcFunction[] $query_functions, $timeout ::: float, $ignore_answer ::: bool, \KphpRpcRequestsExtraInfo $requests_extra_info, $need_responses_extra_info ::: bool) ::: int[];

/** @kphp-extern-func-info interruptible */
function k2_kphp_rpc_tl_query_result($query_ids ::: array) ::: mixed[][];
function rpc_fetch_response($query_ids ::: array) ::: mixed[][];

/** @kphp-extern-func-info interruptible */
function k2_kphp_typed_rpc_tl_query_result(int[] $query_ids) ::: @tl\RpcResponse[];
function rpc_fetch_typed_response(int[] $query_ids) ::: @tl\RpcResponse[];

/** @kphp-extern-func-info can_throw */
function fetch_int () ::: int;
Expand Down

0 comments on commit 1ed5fa2

Please sign in to comment.