mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Update deferred calls to use Callables
This commit is contained in:
parent
8297ec949b
commit
0e8f90f4c8
92 changed files with 192 additions and 350 deletions
|
|
@ -472,7 +472,7 @@ bool HTTPRequest::_update_connection() {
|
|||
}
|
||||
|
||||
void HTTPRequest::_defer_done(int p_status, int p_code, const PackedStringArray &p_headers, const PackedByteArray &p_data) {
|
||||
call_deferred(SNAME("_request_done"), p_status, p_code, p_headers, p_data);
|
||||
callable_mp(this, &HTTPRequest::_request_done).call_deferred(p_status, p_code, p_headers, p_data);
|
||||
}
|
||||
|
||||
void HTTPRequest::_request_done(int p_status, int p_code, const PackedStringArray &p_headers, const PackedByteArray &p_data) {
|
||||
|
|
@ -621,8 +621,6 @@ void HTTPRequest::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("get_downloaded_bytes"), &HTTPRequest::get_downloaded_bytes);
|
||||
ClassDB::bind_method(D_METHOD("get_body_size"), &HTTPRequest::get_body_size);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("_request_done"), &HTTPRequest::_request_done);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_timeout", "timeout"), &HTTPRequest::set_timeout);
|
||||
ClassDB::bind_method(D_METHOD("get_timeout"), &HTTPRequest::get_timeout);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue