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