File tree Expand file tree Collapse file tree
app/src/main/java/omega_r/com/extensions/simple Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,36 +16,7 @@ class MainActivity : AppCompatActivity() {
1616 super .onCreate(savedInstanceState)
1717 setContentView(R .layout.activity_main)
1818
19- CoroutineScope (Dispatchers .Default ).apply {
20- launchDelayed(4900 ) {
21- Log .d(" MainActivity" , " launchDelayed(4900)" )
22- }
23- launchDelayed(5 .seconds) {
24- Log .d(" MainActivity" , " launchDelayed(5.seconds)" )
25- }
26- launchWithTicker(
27- ticksCount = 10 ,
28- tickDurationMillis = 1000 ,
29- initialDelayMillis = 5000 ,
30- onTick = {
31- Log .d(" MainActivity" , " launchWithTicker($it )" )
32- },
33- onEnd = {
34- Log .d(" MainActivity" , " launchWithTicker(end)" )
35- }
36- )
37- launchWithTicker(
38- ticksCount = 10 ,
39- tickDuration = 1 .seconds,
40- initialDelay = 15 .seconds,
41- onTick = {
42- Log .d(" MainActivity" , " launchWithTicker2($it )" )
43- },
44- onEnd = {
45- Log .d(" MainActivity" , " launchWithTicker2(end)" )
46- }
47- )
48- }
19+
4920 }
5021
5122}
You can’t perform that action at this time.
0 commit comments