blob: 7e9195dcd0a87c6c72e4bf5c637784b31c7caeb0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<?php
class DelayedCallback extends TPage
{
function callback1($sender, $param)
{
$ms = 4;
sleep($ms);
$this->status->Text="Callback 1 returned after {$ms}s";
}
function callback2($sender, $param)
{
$ms = 2;
sleep($ms);
$this->status->Text="Callback 2 delayed {$ms}s";
}
}
?>
|