- Queries
- All Atoms
- Search
- Advanced Search
Diviner All Atoms
All Atoms
All Atoms
- A 'future' or 'promise' is an object which represents the result of some pending computation. For a more complete overview of futures, see @{article:Using Futures}.
- Class
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Retrieve the final result of the future.
- Method
- Method
- Default amount of time to wait on stream select for this future. Normally 1 second is fine, but if the future has a timeout sooner than that it should return the amount of time left before the timeout.
- Method
- Retrieve a list of sockets which we can wait to become writable while a future is resolving. See @{method:getReadSockets}.
- Method
- Retrieve a list of sockets which we can wait to become readable while a future is resolving. If your future has sockets which can be `select()`ed, return them here (or in @{method:getWriteSockets}) to make the resolve loop do a `select()`. If you do not return sockets in either case, you'll get a busy wait.
- Method
- Method
- Method
- Method
- Resolve a future and return its result, blocking until the result is ready if necessary.
- Method
- Is this future's process complete? Specifically, can this future be resolved without blocking?
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Serialize PHP values and objects into a human-readable format, useful for displaying errors.
- Class
- Adds indentation to the beginning of every line starting from `$first_line`.
- Method
- Implementation for @{method:printShallow}.
- Method
- Dump some debug output about an object's members without the potential recursive explosion of verbosity that comes with `print_r()`.
- Method
- Print a concise, human readable representation of a value.
- Method
- Given a value, makes the best attempt at returning a string representation of that value suitable for printing. This method returns a //complete// representation of the value; use @{method:printShort} or @{method:printShallow} to summarize values.
- Method
- Channel that transmits PHP objects using PHP serialization. This channel is binary safe.
- Class
- A @{class:PhutilChannelChannel} which wraps some other channel and provides metrics about its use (e.g., bytes read and bytes written).
- Class
- Method
- Method
- Method
- Get the elapsed wall time since this channel opened.
- Method
- Get the number of bytes that have been read from the channel. This excludes any bytes which have been received but not actually read by anything, and thus may underreport compared to actual activity on the wire.
- Method
- Get the number of bytes that have been written to the channel. This includes any bytes which have been buffered but not actually transmitted, and thus may overreport compared to actual activity on the wire.
- Method
- A @{class:PhutilChannelChannel} which wraps some other channel and writes data passed over it to a log file.
- Class
- Method
- Method
- Method
- Wraps a @{class:PhutilChannel} and implements a message-oriented protocol on top of it. A protocol channel behaves like a normal channel, except that @{method:read} and @{method:write} are message-oriented and the protocol channel handles encoding and parsing messages for transmission.
- Class
- Wait for a message, blocking until one is available.
- Method
- Decode bytes from the underlying channel into zero or more complete messages. The messages should be returned.
- Method
- Encode a message for transmission.
- Method
- Add a message to the queue. While you normally do not need to do this, you can use it to inject out-of-band messages.
- Method
- Write a message to the channel.
- Method
- Read a message from the channel, if a message is available.
- Method
- Channel on an underlying stream socket or socket pair. For a description of channels, see @{class:PhutilChannel}.
- Class
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method