Message.setPriority

Sets the priority of a message. Note that this won't have any effect unless used before the message is added to the session's message processing queue.

The message will be placed just before any other previously added message with lower priority (messages with the same priority are processed on a FIFO basis).

Setting priorities does not currently work with #SoupSessionSync (or with synchronous messages on a plain #SoupSession) because in the synchronous/blocking case, priority ends up being determined semi-randomly by thread scheduling.

class Message
void
setPriority

Parameters

priority SoupMessagePriority

the #SoupMessagePriority

Meta

Since

2.44