Skip to content
This repository was archived by the owner on Aug 16, 2024. It is now read-only.
This repository was archived by the owner on Aug 16, 2024. It is now read-only.

新增一系列无异常的 Try* 模式的接口 #125

@cyanray

Description

@cyanray

比如发送消息(SendMessage),有时候并不在意它能不能发送成功(或者发送失败的原因),现在可以这样写:

try
{
    SendMessage(xxxx, xxxxx);
}
catch(...){}

可以尝试增加类似下面的API,简化一下:

bool TrySendMessage(QQ_t friend, const MessageChain& messages) noexcept;

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions