class READY_DESCRIPTION

Features exported to JOB

Mainly used by loop_item and jobs. May be useful for time/date waiting. May be useful to check if data are available in files without locking. Have a look at queryable for the two states.

Direct parents

non-conformant parents

ANY, PLATFORM

Summary

creation features

exported features

Details

make

ensure

  • queryable = False

queryable: BOOLEAN

First this object is not queryable. You have to configure the condition you want to wait for (data on file, timeout...) When configuration is done, you start waiting with wait. Then this object is queryable, that mean that you can query the state of files, using is_data and is_free.

reset

ensure

  • queryable = False

after (timeout_ms: INTEGER)

timeout_ms is the max time in milliseconds to wait when wait begin.

require

  • timeout_ms >= 0
  • not queryable

after_from_now (timeout_ms: INTEGER)

timeout_ms is the max time in milliseconds to wait from now.

require

  • timeout_ms >= 0
  • not queryable

at (date: MICROSECOND_TIME)

date is the last moment wait can wait.

require

  • not queryable

when_data (file: INPUT_STREAM)

require

  • file /= Void
  • file.is_connected
  • file.has_descriptor
  • not queryable

is_data (file: INPUT_STREAM): BOOLEAN

require

  • file /= Void
  • file.is_connected
  • file.has_descriptor
  • queryable

when_connection (server: SOCKET_SERVER)

require

  • server /= Void
  • not queryable

is_connection (server: SOCKET_SERVER): BOOLEAN

require

  • server /= Void
  • queryable

when_free (file: OUTPUT_STREAM)

require

  • file /= Void
  • file.is_connected
  • file.has_descriptor
  • not queryable

is_free (file: OUTPUT_STREAM): BOOLEAN

require

  • file /= Void
  • file.is_connected
  • file.has_descriptor
  • queryable

wait

block until requested condition (max time and/or data)

require

  • not queryable

ensure

  • queryable

current_time: MICROSECOND_TIME