/ohos5.0/docs/zh-cn/application-dev/quick-start/ |
H A D | arkts-new-once.md | 1 # \@Once:初始化同步一次 19 - \@Once不影响\@Param的观测能力,仅针对数据源的变化做拦截。 20 - \@Once与\@Param装饰变量的先后顺序不影响实际功能。 21 - \@Once与\@Param搭配使用时,可以在本地修改\@Param变量的值。 25 \@Once装饰器作为辅助装饰器,本身没有对装饰类型的要求以及对变量的观察能力。 41 @Once onceStr: string = "Once"; // 错误用法,@Once无法单独使用 42 @Local @Once onceLocal: string = "onceLocal"; // 错误用法,@Once不能与@Local一起使用 50 - \@Once与\@Param的先后顺序无关,可以写成\@Param \@Once也可以写成\@Once \@Param。 55 @Param @Once param1: number; 56 @Once @Param param2: number; [all …]
|
H A D | arkts-custom-component-mixed-scenarios.md | 46 | 组件内装饰器 | \@Local、\@Param、\@Provider、\@Consumer、\@Once、\@Event、\@Monitor、\@Computed | 73 // @Once @Require都是@Param的能力扩展装饰器,必须和@Param一起连用 180 ### 多个装饰器不允许装饰同一个变量(\@Watch、\@Once、\@Require除外) 221 除了\@Watch、\@Once、\@Require这些能力扩展装饰器可以配合其他装饰器使用外,其他装饰器不允许装饰同一个变量。 484 …@Param @Once message: string = "hello"; // 可以观测到变化,同步回父组件依赖@Event,使用了@Once可以修改@Param… 485 @Param @Once undefineVal: string | undefined = undefined; // 使用了@Once可以修改@Param装饰的变量 577 @Param @Once message: string = "hello"; 578 @Param @Once undefineVal: string | undefined = undefined; // 使用了@Once可以修改@Param装饰的变量
|
H A D | arkts-state-management-overview.md | 189 …nentV2.md):使用\@ComponentV2装饰的struct中能使用新的装饰器。例如:\@Local、\@Param、\@Event、\@Once、\@Monitor、\@Provide… 195 - [\@Once](arkts-new-once.md):\@Once装饰的变量仅初始化时同步一次,需要与\@Param一起使用。 214 | \@State | 无外部初始化:@Local<br/>外部初始化一次:\@Param\@Once | \@State和\@Local类似都是数据源的概念,区别是\@State可以外部…
|
/ohos5.0/docs/en/application-dev/quick-start/ |
H A D | arkts-new-once.md | 1 # \@Once: Implementing Initialization Once 41 @Param @Once onceParam: string = "onceParam"; // Correct usage. 42 @Once onceStr: string = "Once"; // Incorrect usage. @Once cannot be used independently. 43 …@Local @Once onceLocal: string = "onceLocal"; // Incorrect usage. @Once cannot be used with @Local. 51 - The order of \@Once and \@Param does not matter. Both \@Param \@Once and \@Once \@Param are corre… 56 @Param @Once param1: number; 57 @Once @Param param2: number; 63 ### Initializing Variables Only Once 70 @Param @Once onceParam: string = ''; 108 @Param @Once onceParamNum: number = 0; [all …]
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/signal/unix/ |
H A D | registry.rs | 20 use std::sync::Once; 31 once: Once, 41 once: Once::new(), in default() 100 static REGISTRY_ONCE: Once = Once::new(); in get_instance()
|
H A D | driver.rs | 73 static ONCE: std::sync::Once = std::sync::Once::new(); in initialize()
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_signal/src/ |
H A D | sig_map.rs | 16 use std::sync::Once; 34 static ONCE: Once = Once::new(); in get_instance()
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http_client/src/util/c_openssl/ |
H A D | mod.rs | 32 use std::sync::Once; 66 static SSL_INIT: Once = Once::new(); in ssl_init()
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/signal/windows/ |
H A D | registry.rs | 15 use std::sync::Once; 47 static REGISTRY_ONCE: Once = Once::new(); in get_instance()
|
H A D | mod.rs | 20 use std::sync::Once; 131 static SIGNAL_ONCE: Once = Once::new(); in init_signal()
|
/ohos5.0/foundation/multimodalinput/input/service/rust/src/ |
H A D | lib.rs | 19 use std::sync::Once; 107 static ONCE: Once = Once::new(); in get_instance() 177 static ONCE: Once = Once::new(); in get_instance() 247 static ONCE: Once = Once::new(); in get_instance() 317 static ONCE: Once = Once::new(); in get_instance() 387 static ONCE: Once = Once::new(); in get_instance() 457 static ONCE: Once = Once::new(); in get_instance() 527 static ONCE: Once = Once::new(); in get_instance() 552 static ONCE: Once = Once::new(); in get_instance()
|
/ohos5.0/base/request/request/services/src/manage/ |
H A D | app_state.rs | 15 use std::sync::Once; 27 static ONCE: Once = Once::new();
|
H A D | network_manager.rs | 17 use std::sync::{Mutex, Once}; 32 static ONCE: Once = Once::new(); in get_instance()
|
H A D | account.rs | 15 use std::sync::{Mutex, Once}; 131 static ONCE: Once = Once::new(); in registry_account_subscribe()
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/process/sys/unix/ |
H A D | zombie_manager.rs | 16 use std::sync::{Mutex, MutexGuard, Once}; 31 static ONCE: Once = Once::new(); in get_instance()
|
/ohos5.0/base/msdp/device_status/rust/services/sys/src/ |
H A D | service.rs | 23 use std::sync::{ Mutex, Once }; 70 static INIT_ONCE: Once = Once::new(); in get_instance()
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/executor/ |
H A D | mod.rs | 23 use std::sync::Once; 99 static ONCE: Once = Once::new(); in global_default_async() 131 static ONCE: Once = Once::new(); in global_default_blocking()
|
/ohos5.0/foundation/systemabilitymgr/safwk/interfaces/innerkits/safwk/rust/tests/ |
H A D | basic.rs | 16 use std::sync::Once; 24 static ONCE: Once = Once::new(); in init()
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/windows/ |
H A D | net.rs | 16 use std::sync::{Arc, Mutex, Once}; 24 static INIT: Once = Once::new(); in init()
|
/ohos5.0/foundation/systemabilitymgr/safwk/interfaces/innerkits/safwk/rust/examples/audio_rust_sa/src/ |
H A D | lib.rs | 24 use std::sync::{Arc, Mutex, Once, RwLock}; 109 static ONCE: Once = Once::new(); in on_idle()
|
/ohos5.0/base/notification/eventhandler/frameworks/cj/src/ |
H A D | emitter.h | 45 static int32_t Once(uint32_t eventId, CallbackImpl *callback); 47 static int32_t Once(char* eventId, CallbackImpl *callback);
|
H A D | emitter_ffi.cpp | 62 return Emitter::Once(eventId, callback); in CJ_OnceWithId() 71 return Emitter::Once(eventId, callback); in CJ_OnceWithStringId()
|
/ohos5.0/base/request/request/services/src/ |
H A D | lib.rs | 73 static ONCE: std::sync::Once = std::sync::Once::new(); in test_init()
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_signal/tests/ |
H A D | signal.rs | 18 use std::sync::{Arc, Once}; 195 static ONCE: Once = Once::new(); in get_instance()
|
/ohos5.0/base/msdp/device_status/rust/frameworks/client/src/ |
H A D | frameworks.rs | 21 use std::sync::{ Mutex, Once }; 206 static INIT_ONCE: Once = Once::new(); in get_instance()
|