Skip to content

Commit

Permalink
[k2] add default arguments to rpc send builtins (#1188)
Browse files Browse the repository at this point in the history
  • Loading branch information
apolyakov authored Dec 13, 2024
1 parent 92f26b3 commit 04c37ab
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions builtin-functions/kphp-light/rpc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,19 @@ final class KphpRpcRequestsExtraInfo {
}

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

/** @kphp-extern-func-info tl_common_h_dep interruptible */
function rpc_send_typed_query_requests($actor ::: string, @tl\RpcFunction[] $query_functions, $timeout ::: float, $ignore_answer ::: bool, \KphpRpcRequestsExtraInfo $requests_extra_info, $need_responses_extra_info ::: bool) ::: int[];
function rpc_send_typed_query_requests($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[];

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

0 comments on commit 04c37ab

Please sign in to comment.