summaryrefslogtreecommitdiff
path: root/reference/csharp/core/src/core_idler.cs
diff options
context:
space:
mode:
Diffstat (limited to 'reference/csharp/core/src/core_idler.cs')
-rw-r--r--reference/csharp/core/src/core_idler.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/reference/csharp/core/src/core_idler.cs b/reference/csharp/core/src/core_idler.cs
index 85c5f45..e8853e5 100644
--- a/reference/csharp/core/src/core_idler.cs
+++ b/reference/csharp/core/src/core_idler.cs
@@ -34,14 +34,14 @@ public class Example
34 }; 34 };
35 35
36 // Use a timer to exit the application 36 // Use a timer to exit the application
37 new Efl.LoopTimer(mainloop, (Efl.LoopTimer etimer) => { 37 var timer = new Efl.LoopTimer(mainloop, (Efl.LoopTimer etimer) => {
38 // Trigger after 10ms 38 // Trigger after 10ms
39 etimer.SetInterval(0.01); 39 etimer.SetInterval(0.01);
40 etimer.TickEvt += (object sender, EventArgs e) => {
41 Console.WriteLine("TIMER: timer callback called, exiting.");
42 mainloop.Quit(new Eina.Value(0));
43 };
44 }); 40 });
41 timer.TickEvt += (object sender, EventArgs e) => {
42 Console.WriteLine("TIMER: timer callback called, exiting.");
43 mainloop.Quit(new Eina.Value(0));
44 };
45 45
46 // Start the EFL main loop (and the experiment) 46 // Start the EFL main loop (and the experiment)
47 mainloop.Begin(); 47 mainloop.Begin();