Code Monkey home page Code Monkey logo

Comments (8)

Nambers avatar Nambers commented on May 24, 2024

下个版本可以通过+和.plus构造
image
image

+和plus的参数为MiraiCodeable类型,即可以传入Image,string和LightApp类型

from miraicp.

ARKMIO avatar ARKMIO commented on May 24, 2024

from miraicp.

ARKMIO avatar ARKMIO commented on May 24, 2024

from miraicp.

ARKMIO avatar ARKMIO commented on May 24, 2024

from miraicp.

Nambers avatar Nambers commented on May 24, 2024

from miraicp.

ARKMIO avatar ARKMIO commented on May 24, 2024

from miraicp.

Nambers avatar Nambers commented on May 24, 2024

谢谢您的解答。最后我想知道一点的是,每条消息都会触发一次消息事件,如果第一次没有处理完然后来了新的消息,那么会因此中断第一次消息的执行吗。如果都会执行完,那这两个一起执行的事件是在一个线程中处理的吗

------------------ 原始邮件 ------------------ 发件人: "Eritque arcus"<[email protected]>; 发送时间: 2021年3月5日(星期五) 下午5:27 收件人: "Nambers/MiraiCP"<[email protected]>; 抄送: "379173433"<[email protected]>; "Author"<[email protected]>; 主题: Re: [Nambers/MiraiCP] 希望能够增加mirai的消息链构造 (#7) 不需要应该 这个延时就是在kt部分运行一个延时执行函数然后再广播延时结束事件,然后我提供了个id参数,也就是说你可以通过在延时那传入不同的自定义id来然后在事件那接受id并区分要执行什么功能,目前这个延时是一次性的,后面可能会考虑加周期性执行或定时执行,从kt调用而不是cpp延时主要是为了省去多线程和缓存jvm对象的麻烦
------------------ Original ------------------ From: ARKMIO <[email protected]&gt; Date: Fri,Mar 5,2021 5:17 PM To: Nambers/MiraiCP <[email protected]&gt; Cc: Eritque arcus <[email protected]&gt;, Comment <[email protected]&gt; Subject: Re: [Nambers/MiraiCP] 希望能够增加mirai的消息链构造 (#7) 上面消息没有打完。。。是不是意味着,我写的延时事件,必须是可重入的。
------------------&amp;nbsp;原始邮件&amp;nbsp;------------------ 发件人: "Eritque arcus"<[email protected]&amp;gt;; 发送时间: 2021年3月5日(星期五) 下午5:07 收件人: "Nambers/MiraiCP"<[email protected]&amp;gt;; 抄送: "379173433"<[email protected]&amp;gt;; "Author"<[email protected]&amp;gt;; 主题: Re: [Nambers/MiraiCP] 希望能够增加mirai的消息链构造 (#7) 下个版本可以通过+和.plus构造 +和plus的参数为MiraiCodeable类型,即可以传入Image,string和LightApp类型 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

我觉得应该是在一个线程里,然后基于kt里的协程来协调,因为在kt上游部分调用jni的时候应该不存在同时调用,调用的地方是在消息监听里,而消息监听在mirai是基于kt的协程协调如果没记错

from miraicp.

Nambers avatar Nambers commented on May 24, 2024

726f8cf,已添加

from miraicp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.