HH\Asio\v - HHVM And Hack Documentation

HackHHVM See Something Wrong? File an Issue Search our Documentation
  • Classes

    • AccessPropertyOnNonObjectException
    • AsyncMysqlClient
      • __construct
      • connect
      • connectAndQuery
      • connectWithOpts
      • setPoolsConnectionLimit
    • AsyncMysqlClientStats
      • __construct
      • callbackDelayMicrosAvg
      • ioEventLoopMicrosAvg
      • ioThreadBusyMicrosAvg
      • ioThreadIdleMicrosAvg
      • notificationQueueSize
    • AsyncMysqlConnectException
    • AsyncMysqlConnectResult
      • __construct
      • clientStats
      • elapsedMicros
      • endTime
      • startTime
    • AsyncMysqlConnection
      • __construct
      • close
      • connectResult
      • escapeString
      • getSslCertCn
      • getSslCertExtensions
      • getSslCertSan
      • host
      • isReusable
      • isSSL
      • isSslCertValidationEnforced
      • isValid
      • lastActivityTime
      • multiQuery
      • port
      • query
      • queryAsync
      • queryf
      • releaseConnection
      • serverInfo
      • setReusable
      • sslSessionReused
      • warningCount
    • AsyncMysqlConnectionOptions
      • enableChangeUser
      • enableDelayedResetConn
      • enableResetConnBeforeClose
      • setConnectAttempts
      • setConnectTcpTimeout
      • setConnectTimeout
      • setConnectionAttributes
      • setQueryTimeout
      • setSSLOptionsProvider
      • setServerCertValidation
      • setSniServerName
      • setTotalTimeout
    • AsyncMysqlConnectionPool
      • __construct
      • connect
      • connectAndQuery
      • connectWithOpts
      • getPoolStats
    • AsyncMysqlErrorResult
      • __construct
      • clientStats
      • elapsedMicros
      • endTime
      • failureType
      • mysql_errno
      • mysql_error
      • mysql_normalize_error
      • startTime
    • AsyncMysqlException
      • __construct
      • failed
      • getResult
      • mysqlErrorCode
      • mysqlErrorString
      • timedOut
    • AsyncMysqlQueryErrorResult
      • __construct
      • getSuccessfulResults
      • numSuccessfulQueries
    • AsyncMysqlQueryException
    • AsyncMysqlQueryResult
      • __construct
      • clientStats
      • dictRowsTyped
      • elapsedMicros
      • endTime
      • lastInsertId
      • mapRows
      • mapRowsTyped
      • noIndexUsed
      • numRows
      • numRowsAffected
      • recvGtid
      • responseAttributes
      • rowBlocks
      • startTime
      • vectorRows
      • vectorRowsTyped
    • AsyncMysqlResult
      • __construct
      • clientStats
      • elapsedMicros
      • endTime
      • getSslCertCn
      • getSslCertExtensions
      • getSslCertSan
      • isSslCertValidationEnforced
      • sslSessionReused
      • startTime
    • AsyncMysqlRow
      • __construct
      • at
      • count
      • fieldType
      • getFieldAsDouble
      • getFieldAsInt
      • getFieldAsString
      • getIterator
      • isNull
    • AsyncMysqlRowBlock
      • __construct
      • at
      • count
      • fieldFlags
      • fieldName
      • fieldType
      • fieldsCount
      • getFieldAsDouble
      • getFieldAsInt
      • getFieldAsString
      • getIterator
      • getRow
      • isEmpty
      • isNull
    • AsyncMysqlRowBlockIterator
      • __construct
      • current
      • key
      • next
      • rewind
      • valid
    • AsyncMysqlRowIterator
      • __construct
      • current
      • key
      • next
      • rewind
      • valid
    • CoeffectViolationException
    • DOMNameSpaceNode
    • DOMNamedNodeMap
      • __construct
      • getIterator
      • getNamedItem
      • getNamedItemNS
      • item
    • DOMNode
      • C14N
      • C14NFile
      • C14Nfile
      • __construct
      • __debugInfo
      • appendChild
      • cloneNode
      • getLineNo
      • getNodePath
      • hasAttributes
      • hasChildNodes
      • insertBefore
      • isDefaultNamespace
      • isSameNode
      • isSupported
      • lookupNamespaceUri
      • lookupPrefix
      • normalize
      • removeChild
      • replaceChild
    • DOMNodeIterator
      • __construct
      • current
      • key
      • next
      • rewind
      • valid
    • DOMNodeList
      • __construct
      • __debugInfo
      • getIterator
      • item
    • DebuggerClient
      • __construct
      • getState
      • init
      • processCmd
    • DebuggerClientCmdUser
      • __construct
      • addCompletion
      • arg
      • argCount
      • argValue
      • args
      • ask
      • code
      • error
      • getCode
      • getCommand
      • getCurrentLocation
      • getFrame
      • getStackTrace
      • help
      • helpBody
      • helpCmds
      • helpSection
      • helpTitle
      • info
      • lineRest
      • output
      • printFrame
      • quit
      • send
      • tutorial
      • wrap
      • xend
    • DebuggerProxyCmdUser
      • __construct
      • isLocal
      • send
    • DivisionByZeroException
    • EncodingDetector
      • __construct
      • detect
      • detectAll
      • setDeclaredEncoding
      • setText
    • EncodingMatch
      • __construct
      • getConfidence
      • getEncoding
      • getLanguage
      • getUTF8
      • isValid
    • ExceptionWithPureGetMessage
    • FunctionCredential
      • __construct
      • __debugInfo
      • __getDebugInfo
      • getClassName
      • getFilename
      • getFunctionName
    • HH\AnyArray
    • HH\Asio\WrappedException
      • __construct
      • getException
      • getResult
      • isFailed
      • isSucceeded
    • HH\Asio\WrappedResult
      • __construct
      • getException
      • getResult
      • isFailed
      • isSucceeded
    • HH\AsyncGenerator
      • __construct
      • next
      • raise
      • send
    • HH\Awaitable
      • __construct
      • getName
      • isFailed
      • isFinished
      • isSucceeded
      • setOnIOWaitEnterCallback
      • setOnIOWaitExitCallback
      • setOnJoinCallback
    • HH\BuiltinAbstractEnumClass
      • nameOf
    • HH\BuiltinEnumClass
      • getValues
      • valueOf
    • HH\ImmMap
      • __construct
      • __toString
      • at
      • concat
      • contains
      • containsKey
      • count
      • differenceByKey
      • filter
      • filterWithKey
      • firstKey
      • firstValue
      • fromItems
      • get
      • getIterator
      • immutable
      • isEmpty
      • items
      • keys
      • lastKey
      • lastValue
      • lazy
      • map
      • mapWithKey
      • skip
      • skipWhile
      • slice
      • take
      • takeWhile
      • toDArray
      • toImmMap
      • toImmSet
      • toImmVector
      • toKeysArray
      • toMap
      • toSet
      • toVArray
      • toValuesArray
      • toVector
      • values
      • zip
    • HH\ImmSet
      • __construct
      • __toString
      • concat
      • contains
      • count
      • filter
      • filterWithKey
      • firstKey
      • firstValue
      • fromArrays
      • fromItems
      • fromKeysOf
      • getIterator
      • immutable
      • isEmpty
      • items
      • keys
      • lastKey
      • lastValue
      • lazy
      • map
      • mapWithKey
      • skip
      • skipWhile
      • slice
      • take
      • takeWhile
      • toDArray
      • toImmMap
      • toImmSet
      • toImmVector
      • toKeysArray
      • toMap
      • toSet
      • toVArray
      • toValuesArray
      • toVector
      • values
      • zip
    • HH\ImmVector
      • __construct
      • __toString
      • at
      • concat
      • containsKey
      • count
      • filter
      • filterWithKey
      • firstKey
      • firstValue
      • fromItems
      • fromKeysOf
      • get
      • getIterator
      • immutable
      • isEmpty
      • items
      • keys
      • lastKey
      • lastValue
      • lazy
      • linearSearch
      • map
      • mapWithKey
      • skip
      • skipWhile
      • slice
      • take
      • takeWhile
      • toDArray
      • toImmMap
      • toImmSet
      • toImmVector
      • toKeysArray
      • toMap
      • toSet
      • toVArray
      • toValuesArray
      • toVector
      • values
      • zip
    • HH\InvariantException
    • Locale\InvalidLocaleException
    • OS\FileDescriptor
      • __construct
      • __debugInfo
    • SQL\Query
      • __construct
      • toString__FOR_DEBUGGING_ONLY
      • toUnescapedString__FOR_DEBUGGING_ONLY__UNSAFE
    • HH\Map
      • __construct
      • __toString
      • add
      • addAll
      • at
      • clear
      • concat
      • contains
      • containsKey
      • count
      • differenceByKey
      • filter
      • filterWithKey
      • firstKey
      • firstValue
      • fromArray
      • fromItems
      • get
      • getIterator
      • immutable
      • isEmpty
      • items
      • keys
      • lastKey
      • lastValue
      • lazy
      • map
      • mapWithKey
      • remove
      • removeKey
      • reserve
      • retain
      • retainWithKey
      • set
      • setAll
      • skip
      • skipWhile
      • slice
      • take
      • takeWhile
      • toDArray
      • toImmMap
      • toImmSet
      • toImmVector
      • toKeysArray
      • toMap
      • toSet
      • toVArray
      • toValuesArray
      • toVector
      • values
      • zip
    • HH\Pair
      • __construct
      • __toString
      • at
      • concat
      • containsKey
      • count
      • filter
      • filterWithKey
      • firstKey
      • firstValue
      • get
      • getIterator
      • immutable
      • isEmpty
      • items
      • keys
      • lastKey
      • lastValue
      • lazy
      • linearSearch
      • map
      • mapWithKey
      • skip
      • skipWhile
      • slice
      • take
      • takeWhile
      • toDArray
      • toImmMap
      • toImmSet
      • toImmVector
      • toKeysArray
      • toMap
      • toSet
      • toVArray
      • toValuesArray
      • toVector
      • values
      • zip
    • HH\Readonly\Shapes
      • at
      • idx
      • toArray
      • toDict
    • HH\Set
      • __construct
      • __toString
      • add
      • addAll
      • addAllKeysOf
      • clear
      • concat
      • contains
      • count
      • difference
      • filter
      • filterWithKey
      • firstKey
      • firstValue
      • fromArray
      • fromArrays
      • fromItems
      • fromKeysOf
      • getIterator
      • immutable
      • isEmpty
      • items
      • keys
      • lastKey
      • lastValue
      • lazy
      • map
      • mapWithKey
      • remove
      • removeAll
      • reserve
      • retain
      • retainWithKey
      • skip
      • skipWhile
      • slice
      • take
      • takeWhile
      • toDArray
      • toImmMap
      • toImmSet
      • toImmVector
      • toKeysArray
      • toMap
      • toSet
      • toVArray
      • toValuesArray
      • toVector
      • values
      • zip
    • HH\Shapes
      • at
      • idx
      • keyExists
      • removeKey
      • toArray
      • toDict
    • HH\Vector
      • __construct
      • __toString
      • add
      • addAll
      • addAllKeysOf
      • append
      • at
      • clear
      • concat
      • contains
      • containsKey
      • count
      • filter
      • filterWithKey
      • firstKey
      • firstValue
      • fromArray
      • fromItems
      • fromKeysOf
      • get
      • getIterator
      • immutable
      • isEmpty
      • items
      • keys
      • lastKey
      • lastValue
      • lazy
      • linearSearch
      • map
      • mapWithKey
      • pop
      • removeKey
      • reserve
      • resize
      • reverse
      • set
      • setAll
      • shuffle
      • skip
      • skipWhile
      • slice
      • splice
      • take
      • takeWhile
      • toDArray
      • toImmMap
      • toImmSet
      • toImmVector
      • toKeysArray
      • toMap
      • toSet
      • toVArray
      • toValuesArray
      • toVector
      • values
      • zip
    • InteractionId
      • __construct
    • IntervalTimer
      • __construct
      • start
      • stop
    • IntlDatePatternGenerator
      • __construct
      • addPattern
      • createEmptyInstance
      • createInstance
      • getAppendItemFormat
      • getAppendItemName
      • getBaseSkeleton
      • getBaseSkeletons
      • getBestPattern
      • getDateTimeFormat
      • getDecimal
      • getErrorCode
      • getErrorMessage
      • getPatternForSkeleton
      • getSkeleton
      • getSkeletons
      • replaceFieldTypes
      • setAppendItemFormat
      • setAppendItemName
      • setDateTimeFormat
      • setDecimal
    • InvalidCallbackArgumentException
    • InvalidForeachArgumentException
    • InvalidOperationException
    • MCRouter
      • __construct
      • add
      • append
      • cas
      • createSimple
      • decr
      • del
      • flushAll
      • get
      • getOpName
      • getResultName
      • gets
      • incr
      • prepend
      • replace
      • set
      • version
    • MCRouterException
      • __construct
      • getKey
      • getOp
    • MCRouterOptionException
      • __construct
      • getErrors
    • ModuleBoundaryViolationException
    • NoDoc
    • PairIterator
      • __construct
      • current
      • key
      • next
      • rewind
      • valid
    • ReadonlyViolationException
    • ReflectionClass
      • __clone
      • __construct
      • __init
      • __toString
      • export
      • getAbstractConstantNames
      • getAbstractConstantNamesCache
      • getAttribute
      • getAttributeClass
      • getAttributes
      • getAttributesNamespaced
      • getAttributesRecursiveNamespaced
      • getClassPropertyInfo
      • getConstant
      • getConstants
      • getConstantsCache
      • getConstructor
      • getConstructorName
      • getDefaultProperties
      • getDocComment
      • getDynamicPropertyInfos
      • getEndLine
      • getEnumUnderlyingType
      • getExtension
      • getExtensionName
      • getFile
      • getFileName
      • getInterfaceNames
      • getInterfaces
      • getMethod
      • getMethodOrder
      • getMethodOrderCache
      • getMethodOrderWithCaching
      • getMethods
      • getModifiers
      • getModule
      • getName
      • getNamespaceName
      • getOrderedAbstractConstants
      • getOrderedConstants
      • getOrderedPropertyInfos
      • getOrderedTypeConstants
      • getParentClass
      • getParentName
      • getProperties
      • getProperty
      • getPropsMapCache
      • getReflectionClassesFromNames
      • getReifiedTypeParamInfo
      • getRequirementNames
      • getRequirements
      • getShortName
      • getStartLine
      • getStaticProperties
      • getStaticPropertyValue
      • getTraitAliases
      • getTraitNames
      • getTraits
      • getTypeConstant
      • getTypeConstantNamesCache
      • getTypeConstantNamesWithCaching
      • getTypeConstants
      • hasAttribute
      • hasConstant
      • hasMethod
      • hasProperty
      • hasTypeConstant
      • implementsInterface
      • inNamespace
      • isAbstract
      • isCloneable
      • isEnum
      • isFinal
      • isHack
      • isInstance
      • isInstantiable
      • isInterface
      • isInternal
      • isInternalToModule
      • isIterateable
      • isSubclassOf
      • isTrait
      • isUserDefined
      • newInstance
      • newInstanceArgs
      • newInstanceWithoutConstructor
      • setStaticPropertyValue
    • ReflectionFile
      • __clone
      • __construct
      • __init
      • __toString
      • getAttribute
      • getAttributeClass
      • getAttributes
      • getAttributesNamespaced
      • getName
      • hasAttribute
    • ReflectionFunction
      • __construct
      • __initClosure
      • __initName
      • __toString
      • export
      • getAttributeClass
      • getClosure
      • getClosureScopeClass
      • getClosureScopeClassname
      • getClosureThis
      • getClosureThisObject
      • getName
      • invoke
      • invokeArgs
      • isClosure
      • isDisabled
    • ReflectionMethod
      • __construct
      • __debugInfo
      • __init
      • __toString
      • export
      • getAttributeClass
      • getClosure
      • getDeclaringClass
      • getDeclaringClassname
      • getModifiers
      • getOriginalClassname
      • getPrototype
      • getPrototypeClassname
      • invoke
      • invokeArgs
      • isAbstract
      • isAccessible
      • isConstructor
      • isFinal
      • isPrivate
      • isProtected
      • isPublic
      • isReadonly
      • isStatic
      • isStaticInPrologue
      • setAccessible
      • validateInvokeParameters
    • ReflectionModule
      • __clone
      • __construct
      • __init
      • __toString
      • getAttribute
      • getAttributeClass
      • getAttributes
      • getAttributesNamespaced
      • getName
      • hasAttribute
    • ReflectionParameter
      • __clone
      • __construct
      • __toString
      • allowsNull
      • canBePassedByValue
      • export
      • getAttribute
      • getAttributeClass
      • getAttributes
      • getAttributesNamespaced
      • getClass
      • getDeclaringClass
      • getDeclaringFunction
      • getDefaultValue
      • getDefaultValueConstantName
      • getDefaultValueText
      • getName
      • getPosition
      • getType
      • getTypeText
      • getTypehintText
      • hasAttribute
      • hasType
      • isArray
      • isCallable
      • isDefaultValueAvailable
      • isDefaultValueConstant
      • isInOut
      • isOptional
      • isPassedByReference
      • isReadonly
      • isVariadic
      • toString
    • ReflectionTypeAlias
      • __clone
      • __construct
      • __init
      • __toString
      • getAssignedTypeText
      • getAttribute
      • getAttributeClass
      • getAttributes
      • getAttributesNamespaced
      • getFile
      • getFileName
      • getName
      • getResolvedTypeStructure
      • getTypeStructure
      • hasAttribute
    • ReflectionTypeConstant
      • __clone
      • __construct
      • __init
      • __toString
      • export
      • getAssignedTypeHint
      • getAssignedTypeText
      • getClass
      • getClassname
      • getDeclaringClass
      • getDeclaringClassname
      • getName
      • getTypeStructure
      • isAbstract
    • RpcOptions
      • __construct
      • __toString
      • setChunkBufferSize
      • setChunkTimeout
      • setFaultToInject
      • setHeader
      • setInteractionId
      • setLoggingContext
      • setOverallTimeout
      • setProcessingTimeout
      • setRoutingKey
      • setShardId
      • setWriteHeader
    • SimpleXMLElementIterator
      • __construct
      • current
      • key
      • next
      • rewind
      • valid
    • SodiumException
    • TClientBufferedStream
      • __construct
      • gen
      • genNext
    • TClientSink
      • __construct
      • genCreditsOrFinalResponse
      • genCreditsOrFinalResponseHelper
      • genSink
      • sendClientException
      • sendPayloadOrSinkComplete
    • TypeAssertionException
    • TypecastException
    • UndefinedPropertyException
    • UndefinedVariableException
    • WeakRef
      • __construct
      • acquire
      • get
      • release
      • valid
    • XMLWriter
      • __construct
      • endAttribute
      • endCData
      • endComment
      • endDTD
      • endDTDAttlist
      • endDTDElement
      • endDTDEntity
      • endDocument
      • endElement
      • endPI
      • flush
      • fullEndElement
      • openMemory
      • openURI
      • outputMemory
      • setIndent
      • setIndentString
      • startAttribute
      • startAttributeNS
      • startCData
      • startComment
      • startDTD
      • startDTDAttlist
      • startDTDElement
      • startDTDEntity
      • startDocument
      • startElement
      • startElementNS
      • startPI
      • text
      • writeAttribute
      • writeAttributeNS
      • writeCData
      • writeComment
      • writeDTD
      • writeDTDAttlist
      • writeDTDElement
      • writeDTDEntity
      • writeElement
      • writeElementNS
      • writePI
      • writeRaw
  • Interfaces

    • ConstCollection
      • count
      • isEmpty
      • items
      • toDArray
      • toVArray
    • ConstIndexAccess
      • at
      • containsKey
      • get
    • ConstMap
      • concat
      • filter
      • filterWithKey
      • firstKey
      • firstValue
      • keys
      • lastKey
      • lastValue
      • map
      • mapWithKey
      • skip
      • skipWhile
      • slice
      • take
      • takeWhile
      • toDArray
      • toVArray
      • values
      • zip
    • ConstMapAccess
    • ConstSet
      • concat
      • filter
      • filterWithKey
      • firstKey
      • firstValue
      • keys
      • lastKey
      • lastValue
      • map
      • mapWithKey
      • skip
      • skipWhile
      • slice
      • take
      • takeWhile
      • toDArray
      • toVArray
      • values
      • zip
    • ConstSetAccess
      • contains
    • ConstVector
      • concat
      • filter
      • filterWithKey
      • firstKey
      • firstValue
      • keys
      • lastKey
      • lastValue
      • linearSearch
      • map
      • mapWithKey
      • skip
      • skipWhile
      • slice
      • take
      • takeWhile
      • toDArray
      • toVArray
      • values
      • zip
    • HH\Asio\ResultOrExceptionWrapper
      • getException
      • getResult
      • isFailed
      • isSucceeded
    • HH\AsyncIterator
      • next
    • HH\AsyncKeyedIterator
      • next
    • HH\Capabilities\AccessGlobals
    • HH\Capabilities\IO
    • HH\Capabilities\ImplicitPolicy
    • HH\Capabilities\ImplicitPolicyLocal
    • HH\Capabilities\ImplicitPolicyOf
    • HH\Capabilities\ImplicitPolicyOfLocal
    • HH\Capabilities\ImplicitPolicyOfShallow
    • HH\Capabilities\ImplicitPolicyShallow
    • HH\Capabilities\ReadGlobals
    • HH\Capabilities\Rx
    • HH\Capabilities\RxLocal
    • HH\Capabilities\RxShallow
    • HH\Capabilities\System
    • HH\Capabilities\SystemLocal
    • HH\Capabilities\SystemShallow
    • HH\Capabilities\WriteProperty
    • HH\ClassAttribute
    • HH\ClassConstantAttribute
    • HH\ClassLikeAttribute
    • HH\Collection
      • clear
    • HH\Container
    • HH\EnumAttribute
    • HH\EnumClassAttribute
    • HH\FileAttribute
    • HH\FunctionAttribute
    • HH\IMemoizeParam
      • getInstanceKey
    • HH\InstancePropertyAttribute
    • HH\Iterable
      • concat
      • filter
      • firstValue
      • getIterator
      • lastValue
      • lazy
      • map
      • skip
      • skipWhile
      • slice
      • take
      • takeWhile
      • toImmSet
      • toImmVector
      • toValuesArray
      • values
      • zip
    • HH\Iterator
      • current
      • key
      • next
      • rewind
      • valid
    • HH\KeyedContainer
    • HH\KeyedIterable
      • concat
      • filter
      • filterWithKey
      • firstKey
      • firstValue
      • getIterator
      • keys
      • lastKey
      • lastValue
      • lazy
      • map
      • mapWithKey
      • skip
      • skipWhile
      • slice
      • take
      • takeWhile
      • toImmMap
      • toKeysArray
      • values
      • zip
    • HH\KeyedIterator
      • key
    • HH\KeyedTraversable
    • HH\LambdaAttribute
    • SQL\ListFormat
      • format_d
      • format_f
      • format_s
      • format_upcase_c
    • SQL\QueryFormat
      • format_0x25
      • format_0x3d
      • format_upcase_c
      • format_upcase_k
      • format_upcase_l
      • format_upcase_q
      • format_upcase_t
    • SQL\ScalarFormat
      • format_d
      • format_f
      • format_s
    • HH\MethodAttribute
    • HH\ModuleAttribute
    • HH\ParameterAttribute
    • HH\PropertyAttribute
    • HH\SQLFormatter
      • format_0x25
      • format_0x3d
      • format_upcase_c
      • format_upcase_l
      • format_upcase_t
    • HH\StaticPropertyAttribute
    • HH\Traversable
    • HH\TypeAliasAttribute
    • HH\TypeConstantAttribute
    • HH\TypeParameterAttribute
    • HH\UNSAFESingletonMemoizeParam
      • getInstanceKey
    • IAsyncDisposable
      • __disposeAsync
    • IDisposable
      • __dispose
    • IExceptionWithPureGetMessage
      • getMessage
    • ILeakSafeStringishObject
      • __toString
    • IPureStringishObject
      • __toString
    • IZonedStringishObject
      • __toString
    • IndexAccess
      • removeKey
      • set
      • setAll
    • MapAccess
    • MutableMap
      • concat
      • filter
      • filterWithKey
      • firstKey
      • firstValue
      • keys
      • lastKey
      • lastValue
      • map
      • mapWithKey
      • skip
      • skipWhile
      • slice
      • take
      • takeWhile
      • toDArray
      • toVArray
      • values
      • zip
    • MutableSet
      • concat
      • filter
      • filterWithKey
      • firstKey
      • firstValue
      • keys
      • lastKey
      • lastValue
      • map
      • mapWithKey
      • skip
      • skipWhile
      • slice
      • take
      • takeWhile
      • toDArray
      • toVArray
      • values
      • zip
    • MutableVector
      • concat
      • filter
      • filterWithKey
      • firstKey
      • firstValue
      • keys
      • lastKey
      • lastValue
      • linearSearch
      • map
      • mapWithKey
      • skip
      • skipWhile
      • slice
      • take
      • takeWhile
      • toDArray
      • toVArray
      • values
      • zip
    • MysqlRow
      • at
      • count
      • fieldType
      • getFieldAsDouble
      • getFieldAsInt
      • getFieldAsString
      • getIterator
      • isNull
    • OutputCollection
      • add
      • addAll
    • PlainSprintf
      • format_0x20
      • format_0x25
      • format_0x27
      • format_0x2b
      • format_0x2d
      • format_0x2e
      • format_0x30
      • format_0x31
      • format_0x32
      • format_0x33
      • format_0x34
      • format_0x35
      • format_0x36
      • format_0x37
      • format_0x38
      • format_0x39
      • format_b
      • format_c
      • format_d
      • format_e
      • format_f
      • format_g
      • format_l
      • format_o
      • format_s
      • format_u
      • format_upcase_e
      • format_upcase_f
      • format_upcase_x
      • format_x
    • SetAccess
      • remove
    • SprintfQuote
      • format_0x3d
    • Stringish
    • StringishObject
      • __toString
    • XHPChild
  • Traits

    • ExceptionWithPureGetMessageTrait
      • getMessage
    • ReflectionLegacyAttribute
      • getAttribute
      • getAttributes
      • hasAttribute
    • ReflectionTypedAttribute
      • getAttributeClass
    • StrictIterable
      • concat
      • filter
      • firstValue
      • lastValue
      • lazy
      • map
      • skip
      • skipWhile
      • slice
      • take
      • takeWhile
      • toArray
      • toImmSet
      • toImmVector
      • toSet
      • toValuesArray
      • toVector
      • values
      • zip
    • StrictKeyedIterable
      • concat
      • filter
      • filterWithKey
      • firstKey
      • firstValue
      • keys
      • lastKey
      • lastValue
      • lazy
      • map
      • mapWithKey
      • skip
      • skipWhile
      • slice
      • take
      • takeWhile
      • toArray
      • toImmMap
      • toImmSet
      • toImmVector
      • toKeysArray
      • toMap
      • toSet
      • toValuesArray
      • toVector
      • values
      • zip
  • Functions

    • HH\Asio\backtrace
    • HH\Asio\cancel
    • HH\Asio\curl_exec
    • HH\Asio\has_finished
    • HH\Asio\join
    • HH\Asio\later
    • HH\Asio\m
    • HH\Asio\mf
    • HH\Asio\mfk
    • HH\Asio\mfkw
    • HH\Asio\mfw
    • HH\Asio\mm
    • HH\Asio\mmk
    • HH\Asio\mmkw
    • HH\Asio\mmw
    • HH\Asio\mw
    • HH\Asio\name
    • HH\Asio\null
    • HH\Asio\result
    • HH\Asio\usleep
    • HH\Asio\v
    • HH\Asio\va
    • HH\Asio\vf
    • HH\Asio\vfk
    • HH\Asio\vfkw
    • HH\Asio\vfw
    • HH\Asio\vm
    • HH\Asio\vmk
    • HH\Asio\vmkw
    • HH\Asio\vmw
    • HH\Asio\void
    • HH\Asio\vw
    • HH\Asio\wrap
    • HH\Client\typecheck
    • HH\Client\typecheck_and_error
    • HH\Coeffects\backdoor
    • HH\Coeffects\backdoor_async
    • HH\ExperimentalParserUtils\body_bounds
    • HH\ExperimentalParserUtils\collect_comments
    • HH\ExperimentalParserUtils\extract_enum_comments
    • HH\ExperimentalParserUtils\extract_name_from_node
    • HH\ExperimentalParserUtils\extract_parameter_comments
    • HH\ExperimentalParserUtils\extract_shape_comments
    • HH\ExperimentalParserUtils\extract_shape_from_type
    • HH\ExperimentalParserUtils\extract_type_of_only_shape_type_alias
    • HH\ExperimentalParserUtils\ffp_json_dfs
    • HH\ExperimentalParserUtils\find_all_functions
    • HH\ExperimentalParserUtils\find_boundary_token
    • HH\ExperimentalParserUtils\find_class_body
    • HH\ExperimentalParserUtils\find_class_method
    • HH\ExperimentalParserUtils\find_class_method_shape_return_type
    • HH\ExperimentalParserUtils\find_class_shape_type_constant
    • HH\ExperimentalParserUtils\find_enum_body
    • HH\ExperimentalParserUtils\find_method_names_in_concrete_derived_class
    • HH\ExperimentalParserUtils\find_method_parameters
    • HH\ExperimentalParserUtils\find_single_shape_type_alias
    • HH\ExperimentalParserUtils\find_test_methods
    • HH\FIXME\UNSAFE_CAST
    • HH\Facts\all_constants
    • HH\Facts\all_functions
    • HH\Facts\all_type_aliases
    • HH\Facts\all_types
    • HH\Facts\constant_to_path
    • HH\Facts\db_path
    • HH\Facts\enabled
    • HH\Facts\extract
    • HH\Facts\file_attribute_parameters
    • HH\Facts\file_attributes
    • HH\Facts\files_with_attribute
    • HH\Facts\function_to_path
    • HH\Facts\is_abstract
    • HH\Facts\is_final
    • HH\Facts\kind
    • HH\Facts\method_attribute_parameters
    • HH\Facts\method_attributes
    • HH\Facts\methods_with_attribute
    • HH\Facts\path_to_constants
    • HH\Facts\path_to_functions
    • HH\Facts\path_to_type_aliases
    • HH\Facts\path_to_types
    • HH\Facts\subtypes
    • HH\Facts\supertypes
    • HH\Facts\transitive_subtypes
    • HH\Facts\type_alias_attribute_parameters
    • HH\Facts\type_alias_attributes
    • HH\Facts\type_alias_to_path
    • HH\Facts\type_aliases_with_attribute
    • HH\Facts\type_attribute_parameters
    • HH\Facts\type_attributes
    • HH\Facts\type_name
    • HH\Facts\type_to_path
    • HH\Facts\types_with_attribute
    • HH\Readonly\as_mut
    • HH\Readonly\as_mut_without_validation
    • HH\Readonly\is_value_type
    • HH\ReifiedGenerics\get_classname
    • HH\ReifiedGenerics\get_type_structure
    • HH\array_key_cast
    • HH\array_mark_legacy
    • HH\array_mark_legacy_recursive
    • HH\array_unmark_legacy
    • HH\array_unmark_legacy_recursive
    • HH\asio_get_current_context_idx
    • HH\asio_get_running
    • HH\asio_get_running_in_context
    • HH\autoload_constant_to_path
    • HH\autoload_function_to_path
    • HH\autoload_get_paths
    • HH\autoload_is_native
    • HH\autoload_path_to_constants
    • HH\autoload_path_to_functions
    • HH\autoload_path_to_type_aliases
    • HH\autoload_path_to_types
    • HH\autoload_set_paths
    • HH\autoload_type_alias_to_path
    • HH\autoload_type_to_path
    • HH\class_get_class_name
    • HH\class_meth
    • HH\class_meth_get_class
    • HH\class_meth_get_method
    • HH\clear_all_coverage_data
    • HH\clear_coverage_for_file
    • HH\clear_instance_memoization
    • HH\clear_lsb_memoization
    • HH\clear_static_memoization
    • HH\collect_function_coverage
    • HH\could_include
    • HH\darray
    • HH\deferred_errors
    • HH\disable_all_coverage
    • HH\disable_code_coverage_with_frequency
    • HH\disable_per_file_coverage
    • HH\dynamic_class_meth
    • HH\dynamic_class_meth_force
    • HH\dynamic_fun
    • HH\dynamic_fun_force
    • HH\dynamic_meth_caller
    • HH\enable_function_coverage
    • HH\enable_per_file_coverage
    • HH\execution_context
    • HH\ext_factparse_version
    • HH\ext_watchman_version
    • HH\facts_parse
    • HH\ffp_parse_string
    • HH\ffp_parse_string_native
    • HH\fun
    • HH\fun_get_function
    • HH\get_all_coverage_data
    • HH\get_compiled_units
    • HH\get_coverage_for_file
    • HH\get_files_with_coverage
    • HH\get_headers_secure
    • HH\get_proxygen_headers
    • HH\get_request_count
    • HH\global_get
    • HH\global_isset
    • HH\global_key_exists
    • HH\global_readonly_get
    • HH\global_set
    • HH\global_unset
    • HH\heapgraph_create
    • HH\heapgraph_dfs_edges
    • HH\heapgraph_dfs_nodes
    • HH\heapgraph_edge
    • HH\heapgraph_foreach_edge
    • HH\heapgraph_foreach_node
    • HH\heapgraph_foreach_root
    • HH\heapgraph_foreach_root_node
    • HH\heapgraph_node
    • HH\heapgraph_node_in_edges
    • HH\heapgraph_node_out_edges
    • HH\heapgraph_stats
    • HH\heapgraph_version
    • HH\idx
    • HH\idx_readonly
    • HH\inst_meth
    • HH\int_mul_add_overflow
    • HH\int_mul_overflow
    • HH\invariant
    • HH\invariant_callback_register
    • HH\invariant_violation
    • HH\is_any_array
    • HH\is_array_marked_legacy
    • HH\is_class
    • HH\is_class_meth
    • HH\is_darray
    • HH\is_dict
    • HH\is_dict_or_darray
    • HH\is_fun
    • HH\is_keyset
    • HH\is_late_init_prop_init
    • HH\is_late_init_sprop_init
    • HH\is_list_like
    • HH\is_meth_caller
    • HH\is_php_array
    • HH\is_varray
    • HH\is_vec
    • HH\is_vec_or_varray
    • HH\meth_caller
    • HH\meth_caller_get_class
    • HH\meth_caller_get_method
    • HH\non_crypto_md5_lower
    • HH\non_crypto_md5_upper
    • HH\object_prop_array
    • HH\objprof_get_data
    • HH\objprof_get_paths
    • HH\prefetch_units
    • HH\rqtrace\all_process_stats
    • HH\rqtrace\all_request_stats
    • HH\rqtrace\force_enable
    • HH\rqtrace\is_enabled
    • HH\rqtrace\process_event_stats
    • HH\rqtrace\request_event_stats
    • HH\sequence
    • HH\serialize_memoize_param
    • HH\serialize_with_options
    • HH\server_health_level
    • HH\server_is_prepared_to_stop
    • HH\server_is_stopping
    • HH\server_process_start_time
    • HH\server_uptime
    • HH\server_warmup_status
    • HH\server_warmup_status_monotonic
    • HH\set_frame_metadata
    • HH\set_mem_threshold_callback
    • HH\str_bitwise_xor
    • HH\str_number_coercible
    • HH\str_to_numeric
    • HH\thread_mark_stack
    • HH\thread_memory_stats
    • HH\type_structure_for_alias
    • HH\varray
    • HH\watchman_check_sub
    • HH\watchman_query
    • HH\watchman_run
    • HH\watchman_subscribe
    • HH\watchman_sync_sub
    • HH\watchman_unsubscribe
    • HH\xenon_get_and_clear_missed_sample_count
    • HH\xenon_get_and_clear_samples
    • HH\xenon_get_data
    • HH\xenon_get_is_profiled_request
    • apache_get_rewrite_rules
    • apache_notes
    • apc_add_with_pure_sleep
    • apc_extend_ttl
    • apc_fetch_with_pure_wakeup
    • apc_size
    • apc_store_with_pure_sleep
    • apd_set_browser_trace
    • apd_stop_trace
    • array_change_key_case
    • array_chunk
    • array_combine
    • array_count_values
    • array_fill_keys
    • array_map
    • array_multisort1
    • array_multisort2
    • array_multisort3
    • array_multisort4
    • array_multisort5
    • array_multisort6
    • array_multisort7
    • array_multisort8
    • array_multisort9
    • clock_getres
    • clock_gettime
    • clock_gettime_ns
    • cpu_get_count
    • cpu_get_model
    • curl_init_pooled
    • curl_multi_await
    • dom_document_relaxng_validate_file
    • dom_document_relaxng_validate_xml
    • enum_exists
    • fb_autoload_map
    • fb_compact_serialize
    • fb_compact_unserialize
    • fb_curl_getopt
    • fb_curl_multi_fdset
    • fb_disable_code_coverage
    • fb_enable_code_coverage
    • fb_get_code_coverage
    • fb_get_last_flush_size
    • fb_htmlspecialchars
    • fb_intercept2
    • fb_lazy_lstat
    • fb_lazy_realpath
    • fb_output_compression
    • fb_rename_function
    • fb_serialize
    • fb_set_exit_callback
    • fb_setprofile
    • fb_unserialize
    • fb_utf8_strlen
    • fb_utf8_strlen_deprecated
    • fb_utf8_substr
    • fb_utf8ize
    • fribidi_charset_info
    • fribidi_get_charsets
    • furchash_hphp_ext
    • furchash_hphp_ext_supported
    • gc_check_heap
    • get_class_constants
    • get_http_request_size
    • getaddrinfo
    • getopt_with_optind
    • headers_sent_with_file_line
    • hphp_array_idx
    • hphp_clear_hardware_events
    • hphp_clear_unflushed
    • hphp_crash_log
    • hphp_create_continuation
    • hphp_create_object
    • hphp_create_object_without_constructor
    • hphp_debug_backtrace_hash
    • hphp_debug_break
    • hphp_debug_caller_info
    • hphp_debug_session_auth
    • hphp_debugger_attached
    • hphp_debugger_get_option
    • hphp_debugger_set_option
    • hphp_get_extension_info
    • hphp_get_hardware_counters
    • hphp_get_iostatus
    • hphp_get_iterator
    • hphp_get_property
    • hphp_get_static_property
    • hphp_get_stats
    • hphp_get_status
    • hphp_get_this
    • hphp_get_thread_id
    • hphp_get_timers
    • hphp_gettid
    • hphp_instruction_counter
    • hphp_invoke
    • hphp_invoke_method
    • hphp_memory_get_interval_peak_usage
    • hphp_memory_heap_capacity
    • hphp_memory_heap_usage
    • hphp_memory_start_interval
    • hphp_memory_stop_interval
    • hphp_murmurhash
    • hphp_object_pointer
    • hphp_output_global_state
    • hphp_process_abort
    • hphp_set_error_page
    • hphp_set_hardware_events
    • hphp_set_iostatus_address
    • hphp_set_property
    • hphp_set_static_property
    • hphp_stats
    • hphp_thread_type
    • hphp_throw_fatal_error
    • hphp_to_string
    • hphpd_auth_token
    • hphpd_break
    • hphpd_client_ctrl
    • hphpd_get_client
    • hphpd_get_user_commands
    • hphpd_install_user_command
    • icu_match
    • icu_match_with_matches
    • icu_tokenize
    • icu_transliterate
    • inet_ntop_folly
    • inet_ntop_nullable
    • is_callable_with_name
    • json_decode_with_error
    • json_encode_pure
    • json_encode_with_error
    • libxml_suppress_errors
    • lz4_compress
    • lz4_uncompress
    • lz4hccompress
    • mb_list_encodings_alias_names
    • mb_list_mime_names
    • memory_get_allocation
    • mysql_connect_with_db
    • mysql_connect_with_ssl
    • mysql_more_results
    • mysql_multi_query
    • mysql_next_result
    • mysql_pconnect_with_db
    • mysql_set_timeout
    • mysql_warning_count
    • openssl_encrypt_with_tag
    • pagelet_server_flush
    • pagelet_server_is_done
    • pagelet_server_is_enabled
    • pagelet_server_task_result
    • pagelet_server_task_start
    • pagelet_server_task_status
    • pagelet_server_tasks_started
    • preg_grep_with_error
    • preg_match_all_with_error
    • preg_match_all_with_matches
    • preg_match_all_with_matches_and_error
    • preg_match_with_error
    • preg_match_with_matches
    • preg_match_with_matches_and_error
    • preg_replace_callback_array_with_error
    • preg_replace_callback_with_error
    • preg_replace_with_count
    • preg_replace_with_count_and_error
    • preg_replace_with_error
    • preg_split_with_error
    • print_r_pure
    • qlzcompress
    • qlzuncompress
    • register_postsend_function
    • register_shutdown_function
    • scrypt_enc
    • serialize_pure
    • set_pre_timeout_handler
    • snappy_compress
    • snappy_uncompress
    • sncompress
    • socket_server
    • sodium_crypto_core_hchacha20
    • sodium_crypto_core_ristretto255_from_hash
    • sodium_crypto_core_ristretto255_scalar_add
    • sodium_crypto_core_ristretto255_scalar_complement
    • sodium_crypto_core_ristretto255_scalar_invert
    • sodium_crypto_core_ristretto255_scalar_mul
    • sodium_crypto_core_ristretto255_scalar_negate
    • sodium_crypto_core_ristretto255_scalar_random
    • sodium_crypto_core_ristretto255_scalar_reduce
    • sodium_crypto_core_ristretto255_scalar_sub
    • sodium_crypto_scalarmult_ristretto255
    • str_ireplace_with_count
    • str_replace_with_count
    • stream_await
    • stream_context_set_param
    • thrift_protocol_read_binary
    • thrift_protocol_read_binary_struct
    • thrift_protocol_read_compact
    • thrift_protocol_read_compact_struct
    • thrift_protocol_set_compact_version
    • thrift_protocol_write_binary
    • thrift_protocol_write_compact
    • trigger_sampled_error
    • unserialize_pure
    • var_export_pure
    • xbox_process_call_message
    • xbox_task_result
    • xbox_task_start
    • xbox_task_status
    • xhprof_frame_begin
    • xhprof_frame_end
    • xhprof_network_disable
    • xhprof_network_enable
    • xhprof_run_trace
DocumentationHackReferenceFunctionHH\Asio\vHH\Asio\v

Translate a Traversable of Awaitables into a single Awaitable of Vector

namespace HH\Asio; function v<Tv>( Traversable<Awaitable<Tv>> $awaitables, ): Awaitable<Vector<Tv>>;

This function takes any Traversable object of Awaitables (i.e., each member of the Traversable is of type of Awaitable, likely from a call to a function that returned Awaitable<T>), and transforms those Awaitables into one big Awaitable Vector.

This function is called v we are returning a vector of Awaitable.

Only When you await or join the resulting Awaitable, will all of the values in the Vector within the returned Awaitable be available.

Parameters

  • Traversable<Awaitable<Tv>>$awaitables - The collection of Traversable awaitables.

Returns

  • Awaitable<Vector<Tv>> - An Awaitable of Vector, where the Vector was generated from each Traversable member in $awaitables.

Examples

/** * Query an arbitrary number of URLs in parallel * returning them as a Vector of string responses. */ async function get_urls(\ConstVector<string> $urls): Awaitable<Vector<string>> { // Wrap each URL string into a curl_exec awaitable $handles = $urls->map($url ==> \HH\Asio\curl_exec($url)); // Wait on each handle in parallel and return the results return await \HH\Asio\v($handles); } <<__EntryPoint>> async function basic_usage_main(): Awaitable<void> { $urls = ImmVector { "http://example.com", "http://example.net", "http://example.org", }; $pages = await get_urls($urls); foreach ($pages as $page) { echo \substr($page, 0, 15).' ... '.\substr($page, -8); } } ```.skipif // Skip if we don't have an internet connection if (!\get_headers("www.example.com")) { print "skip"; }

Từ khóa » Hh V