清泛IT社区

标题: Async Procedures 拓展:异步任务拓展,异步处理耗时任务 [打印本页]

作者: App Inventor 2     时间: 昨天 09:52
标题: Async Procedures 拓展:异步任务拓展,异步处理耗时任务
Async Proc
Async Proc is an Extension which you can use to run a Procedure asynchronously. You no longer have to wait for a loop to finish and don’t worry about your app Crashing due to Android System thinking that your app crashed while doing intense processes.
BLOCKS:EVENTS :
[color=var(--tertiary)][color=var(--secondary)]Capture[color=var(--secondary-high)]352×100 4.28 KB

FUNCTIONS :
[color=var(--tertiary)][color=var(--secondary)]Capture[color=var(--secondary-high)]368×539 18.2 KB

HOW TO USE?
Call a Procedure From Anywhere On You app using this block
[color=var(--tertiary)][color=var(--secondary)]Capture[color=var(--secondary-high)]418×219 10.1 KB

Call a Procedure After a Certain Time Using this Block
[color=var(--tertiary)][color=var(--secondary)]Capture[color=var(--secondary-high)]423×254 12.3 KB

Delay Should be in ms.
Call A Procedure After a Certain Time Which accepts arguments
[color=var(--tertiary)][color=var(--secondary)]Capture[color=var(--secondary-high)]552×302 17.7 KB

the a is the 1st item in the list
the b is the 2nd item in the list
NOW THE FUN PART!
Call a Procedure Async Using this block
[color=var(--tertiary)][color=var(--secondary)]Capture[color=var(--secondary-high)]582×215 12.9 KB

These 2 Blocks Do the same Function But with Arguments in it
[color=var(--tertiary)][color=var(--secondary)]Capture[color=var(--secondary-high)]420×200 7.07 KB



https://community.kodular.io/t/f ... res-extension/21322


高级异步拓展:Enhanced Asynchronous Task Extension
https://community.kodular.io/t/f ... sk-extension/253314





欢迎光临 清泛IT社区 (https://bbs.tsingfun.com/) Powered by Discuz! X3.3