Syntax:
WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS(gtid_set[, timeout][,channel])

WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS() is deprecated. Use
WAIT_FOR_EXECUTED_GTID_SET() instead, which works regardless of the
replication channel or user client through which the specified
transactions arrive on the server.

URL: https://dev.mysql.com/doc/refman/8.0/en/gtid-functions.html

