#NEWLINE# @ extensionmethod ( Observable ) #NEWLINE# def skip_with_time( self , duration , scheduler = None ) : #NEWLINE# #INDENT# "Skips elements for the specified duration from the start of the\n    observable source sequence, using the specified scheduler to run timers.\n\n    Example:\n    1 - res = source.skip_with_time(5000, [optional scheduler])\n\n    Description:\n    Specifying a zero value for duration doesn't guarantee no elements will\n    be dropped from the start of the source sequence. This is a side-effect\n    of the asynchrony introduced by the scheduler, where the action that\n    causes callbacks from the source sequence to be forwarded may not\n    execute immediately, despite the zero due time.\n\n    Errors produced by the source sequence are always forwarded to the\n    result sequence, even if the error occurs before the duration.\n\n    Keyword arguments:\n    duration -- {Number} Duration for skipping elements from the start of\n        the sequence.\n    scheduler -- {Scheduler} Scheduler to run the timer on. If not\n        specified, defaults to Rx.Scheduler.timeout.\n\n    Returns n observable {Observable} sequence with the elements skipped\n    during the specified duration from the start of the source sequence.\n    " #NEWLINE# source = self #NEWLINE# scheduler = ( scheduler or timeout_scheduler ) #NEWLINE# def subscribe( observer ) : #NEWLINE# #INDENT# open = [ False ] #NEWLINE# def action( scheduler , state ) : #NEWLINE# #INDENT# open [ 0 ] = True #NEWLINE# #UNINDENT# t = scheduler . schedule_relative ( duration , action ) #NEWLINE# def on_next( x ) : #NEWLINE# #INDENT# if open [ 0 ] : #NEWLINE# #INDENT# observer . on_next ( x ) #NEWLINE# #UNINDENT# #UNINDENT# d = source . subscribe ( on_next , observer . on_error , observer . on_completed ) #NEWLINE# return CompositeDisposable ( t , d ) #NEWLINE# #UNINDENT# return AnonymousObservable ( subscribe )