Home
last modified time | relevance | path

Searched refs:actor (Results 1 – 25 of 58) sorted by relevance

123

/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/channels/
DActorLazyTest.kt15 val actor = actor<String>(start = CoroutineStart.LAZY) { in <lambda>() constant
18 actor as Job // type assertion in <lambda>()
19 assertFalse(actor.isActive) in <lambda>()
20 assertFalse(actor.isCompleted) in <lambda>()
21 assertFalse(actor.isClosedForSend) in <lambda>()
24 assertFalse(actor.isActive) in <lambda>()
25 assertFalse(actor.isCompleted) in <lambda>()
26 assertFalse(actor.isClosedForSend) in <lambda>()
29 actor.start() in <lambda>()
32 assertFalse(actor.isActive) in <lambda>()
[all …]
DActorTest.kt26 val actor = actor<String>(capacity = capacity) { in <lambda>() constant
29 actor as Job // type assertion in <lambda>()
30 assertTrue(actor.isActive) in <lambda>()
31 assertFalse(actor.isCompleted) in <lambda>()
32 assertFalse(actor.isClosedForSend) in <lambda>()
35 assertFalse(actor.isActive) in <lambda>()
36 assertTrue(actor.isCompleted) in <lambda>()
37 assertTrue(actor.isClosedForSend) in <lambda>()
44 val actor = actor<String>(capacity = capacity) { in <lambda>() constant
49 actor as Job // type assertion in <lambda>()
[all …]
DDoubleChannelCloseStressTest.kt16 … val actor = GlobalScope.actor<Int>(CoroutineName("actor"), start = CoroutineStart.LAZY) { in testDoubleCloseStress() constant
21 actor.send(1) in testDoubleCloseStress()
27 actor.close() in testDoubleCloseStress()
DProduceConsumeJvmTest.kt49 val actor = actor<Int>(capacity = capacity) { in <lambda>() constant
57 actor.send(i) in <lambda>()
59 actor.close() in <lambda>()
/external/llvm-project/llvm/test/Transforms/Coroutines/
Dcoro-async.ll6 %async.actor = type { i64 }
9 %async.ctxt = type { i8*, void (i8*, %async.task*, %async.actor*)* }
23 i64 ptrtoint (void (i8*, %async.task*, %async.actor*)* @my_async_function to i64),
31 …er_async_function_fp.apply(i8* %fnPtr, i8* %async.ctxt, %async.task* %task, %async.actor* %actor) {
32 %callee = bitcast i8* %fnPtr to void(i8*, %async.task*, %async.actor*)*
33 tail call swiftcc void %callee(i8* %async.ctxt, %async.task* %task, %async.actor* %actor)
48 define swiftcc void @my_async_function(i8* %async.ctxt, %async.task* %task, %async.actor* %actor) {
73 …%return_to_caller.addr = bitcast void(i8*, %async.task*, %async.actor*)** %callee_context.return_t…
81 %callee = bitcast void(i8*, %async.task*, %async.actor*)* @asyncSuspend to i8*
85 … void (i8*, i8*, %async.task*, %async.actor*)* @my_async_function.my_other_async_function_fp.apply,
[all …]
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/
DFailFastOnStartTest.kt65 actor<Int>(Dispatchers.Main) { fail() } in <lambda>()
70 val actor = actor<Int>(Dispatchers.Main, start = CoroutineStart.LAZY) { fail() } in <lambda>() constant
71 actor.send(1) in <lambda>()
/external/kotlinx.coroutines/benchmarks/src/jmh/kotlin/benchmarks/scheduler/actors/
DPingPongActorBenchmark.kt68 actor<PingPongActorBenchmark.Letter>(capacity = capacity) { in CoroutineScope()
81 return@actor in CoroutineScope()
89 actor<PingPongActorBenchmark.Letter>(capacity = capacity) { in pongActorCoroutine()
95 return@actor in pongActorCoroutine()
DStatefulActorBenchmark.kt82 actor<Letter>(capacity = 1024) { in requestorActor()
89 return@actor in requestorActor()
102 actor<StatefulActorBenchmark.Letter>(capacity = 1024) { in computationActor()
115 is Stop -> return@actor in computationActor()
DConcurrentStatefulActorBenchmark.kt89 actor<Letter>(capacity = 1024) { in requestorActorUnfair()
101 return@actor in requestorActorUnfair()
115 actor<Letter>(capacity = 1024) { in requestorActorFair()
129 return@actor in requestorActorFair()
DCycledActorsBenchmark.kt69 private fun lastActor(stopChannel: Channel<Unit>) = actor<Letter>(capacity = 1024) { in <lambda>()
84 return@actor in <lambda>()
91 …private fun createActor(nextActor: SendChannel<Letter>, stopChannel: Channel<Unit>) = actor<Letter… in <lambda>()
101 return@actor in <lambda>()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/filter/
DProblemHandlerLocation1440Test.java80 public ActivityEntity actor; field in ProblemHandlerLocation1440Test.Activity
86 …public Activity(@JsonProperty("actor") final ActivityEntity actor, @JsonProperty("object") final A… in Activity() argument
87 this.actor = actor; in Activity()
/external/llvm-project/clang/test/AST/
Dattr-swift_attr.m3 __attribute__((swift_attr("@actor")))
8 // CHECK-NEXT: SwiftAttrAttr {{.*}} "@actor"
/external/kotlinx.coroutines/ui/
Dcoroutines-guide-ui.md219 <!--- INCLUDE .*/example-ui-actor-([0-9]+).kt -->
234 > You can get the full code [here](kotlinx-coroutines-javafx/test/guide/example-ui-actor-01.kt).
260 or otherwise ignore a cancellation signal. A better solution is to use an [actor] for tasks that sh…
265 // launch one actor to handle all events on this node
266 val eventActor = GlobalScope.actor<MouseEvent>(Dispatchers.Main) {
269 // install a listener to offer events to this actor
276 > You can get the full code [here](kotlinx-coroutines-javafx/test/guide/example-ui-actor-02.kt).
278 The key idea that underlies an integration of an actor coroutine and a regular event handler is tha…
279 ….offer] function on [SendChannel] that does not wait. It sends an element to the actor immediately,
283 animation is running. This happens because the actor is busy with an animation and does not receive…
[all …]
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/exceptions/
DStackTraceRecoveryChannelsTest.kt153 val actor = actor<Int>(job, Channel.UNLIMITED) { in <lambda>() constant
160 actor.offer(1) in <lambda>()
/external/antlr/runtime/ObjC/Framework/
DTreeRewriter.h36 id actor; variable
45 @property (retain) id actor;
DTreeRewriter.m48 actor = anObject;
56 if ( [actor respondsToSelector:ruleSEL] )
57 return [actor performSelector:ruleSEL];
63 @synthesize actor;
DTreeWizard.h49 id actor; variable
60 @property (retain) id actor;
DTreeWizard.m48 actor = anActor;
49 if ( actor ) [actor retain];
63 if ( actor ) [actor release];
74 … if ( [(TreeWizard *)actor _parse:t Pattern:object1/* tpattern */ Map:object2 /* labels */] ) {
79 if ( [(TreeWizard *)actor _parse:t Pattern:object1/* tpattern */ Map:nil] ) {
95 @synthesize actor;
/external/rust/crates/tokio/src/sync/tests/
Dloom_semaphore_batch.rs23 async fn actor(shared: Arc<Shared>) { in basic_usage() function
43 block_on(actor(shared)); in basic_usage()
47 block_on(actor(shared)); in basic_usage()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/guide/
Dexample-sync-07.kt33 fun CoroutineScope.counterActor() = actor<CounterMsg> { in <lambda>()
/external/python/cpython2/Doc/tools/
Dsusp-ignored.csv138 library/xml.etree.elementtree,,:actor,"for actor in root.findall('real_person:actor', ns):"
139 library/xml.etree.elementtree,,:name,"name = actor.find('real_person:name', ns)"
140 library/xml.etree.elementtree,,:character,"for char in actor.findall('role:character', ns):"
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/
DREADME.md12 | [actor][kotlinx.coroutines.channels.actor] | [SendChannel][kotlinx.coroutines.channels.SendCh…
137 …x.coroutines.channels.actor]: https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/…
139 …b.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.channels/-actor-scope/index.html
/external/python/cpython2/Doc/library/
Dxml.etree.elementtree.rst288 <actor>
292 </actor>
293 <actor>
298 </actor>
306 for actor in root.findall('{http://people.example.com}actor'):
307 name = actor.find('{http://people.example.com}name')
309 for char in actor.findall('{http://characters.example.com}character'):
319 for actor in root.findall('real_person:actor', ns):
320 name = actor.find('real_person:name', ns)
322 for char in actor.findall('role:character', ns):
/external/kotlinx.coroutines/ui/kotlinx-coroutines-javafx/test/guide/
Dexample-ui-actor-02.kt65 val eventActor = GlobalScope.actor<MouseEvent>(Dispatchers.Main) { in onClick()
/external/kotlinx.coroutines/benchmarks/src/jmh/kotlin/benchmarks/akka/
DPingPongAkkaBenchmark.kt7 import akka.actor.*

123