Execute function in a thread and post result.