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.cs5
1 files changed, 1 insertions, 4 deletions
diff --git a/reference/csharp/core/src/core_poll.cs b/reference/csharp/core/src/core_poll.cs
index 3ecf7bc..522a36a 100644
--- a/reference/csharp/core/src/core_poll.cs
+++ b/reference/csharp/core/src/core_poll.cs
@@ -33,10 +33,7 @@ public class Example
33 }; 33 };
34 34
35 // Use a timer to exit the application 35 // Use a timer to exit the application
36 var timer = new Efl.LoopTimer(mainloop, (Efl.LoopTimer etimer) => { 36 var timer = new Efl.LoopTimer(mainloop, 30);
37 // Trigger after 30s
38 etimer.SetInterval(30);
39 });
40 timer.TickEvt += (object sender, EventArgs e) => { 37 timer.TickEvt += (object sender, EventArgs e) => {
41 Console.WriteLine("\nTIMER: timer callback called, exiting."); 38 Console.WriteLine("\nTIMER: timer callback called, exiting.");
42 mainloop.Quit(new Eina.Value(0)); 39 mainloop.Quit(new Eina.Value(0));