async function getDishTitle(data) {
    const title = await self.chef.getDishTitle(data.dish, data.maxLength);
    self.postMessage({
        action: "dishReturned",
        data: {
            value: title,
            id: data.id
        }
    });
}
Gets the dish title

@param {object} data
@param {Dish} data.dish
@param {number} data.maxLength
@param {number} data.id