api:cpp: support result in queue commands