'how to send async post request from magento 2 extension

i have magento 2 extension that send some data after order processed and in in Order Success Observer i send the data using curl

protected function getCurlClient(): Curl
{
    return $this->curl;
}

and i call it like

$this->getCurlClient()->post(self::API_URL, json_encode($someData));

and i want to send the post request asynchronous without waiting for the response



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source