Small documentation change

master
Stefan Krulj 14 years ago
parent da54a52bca
commit 952c0f386d
  1. 7
      sys/brathuhn.py

@ -302,9 +302,12 @@ def callAt(func,_time,*args):
guaranteed that it will happen after the specified time. The call happens guaranteed that it will happen after the specified time. The call happens
in the same thread, so no synchronization is needed. You can append any in the same thread, so no synchronization is needed. You can append any
number of arguments you need. Returns the call id, needed to cancel a call number of arguments you need. Returns the call id, needed to cancel a call
E.g this will call foo(arg1,arg2) in ~5 seconds
brathuhn.callAt(foo,time.time()+5,arg1,arg2)
@param func -- Function to be called @param func -- Function to be called
@param time -- Message body""" @param time -- The time when the message will be called"""
global call_ats global call_ats
global call_ats_id global call_ats_id
call_ats[call_ats_id]=[func,_time,args] call_ats[call_ats_id]=[func,_time,args]

Loading…
Cancel
Save