mirror of
https://github.com/simonbrunel/qtpromise.git
synced 2024-11-22 10:40:08 +08:00
e3f0f054af
Iterates over all the promise values (i.e. `Sequence<T>`) and reduces the sequence to a single value using the given `reducer` function and an optional `initialValue`. Also provide a static helper to directly reduce values (`QtPromise::reduce(values, reducer, initialValue)`).
71 lines
2.5 KiB
JavaScript
71 lines
2.5 KiB
JavaScript
module.exports = {
|
|
title: 'QtPromise',
|
|
description: 'Promises/A+ implementation for Qt/C++',
|
|
ga: 'UA-113899811-1',
|
|
head: [
|
|
['link', { rel: 'icon', href: `/favicon.png` }],
|
|
],
|
|
themeConfig: {
|
|
repo: 'simonbrunel/qtpromise',
|
|
lastUpdated: 'Last Updated',
|
|
editLinks: true,
|
|
docsDir: 'docs',
|
|
algolia: {
|
|
apiKey: '0e6e9cccb8c2c360a5543e28c4e31cb8',
|
|
indexName: 'qtpromise'
|
|
},
|
|
sidebar: [
|
|
'qtpromise/getting-started',
|
|
'qtpromise/qtconcurrent',
|
|
'qtpromise/qtsignals',
|
|
'qtpromise/thread-safety',
|
|
'qtpromise/api-reference',
|
|
{
|
|
title: 'QPromise',
|
|
children: [
|
|
'qtpromise/qpromise/constructor',
|
|
'qtpromise/qpromise/delay',
|
|
'qtpromise/qpromise/each',
|
|
'qtpromise/qpromise/fail',
|
|
'qtpromise/qpromise/filter',
|
|
'qtpromise/qpromise/finally',
|
|
'qtpromise/qpromise/isfulfilled',
|
|
'qtpromise/qpromise/ispending',
|
|
'qtpromise/qpromise/isrejected',
|
|
'qtpromise/qpromise/map',
|
|
'qtpromise/qpromise/reduce',
|
|
'qtpromise/qpromise/tap',
|
|
'qtpromise/qpromise/tapfail',
|
|
'qtpromise/qpromise/then',
|
|
'qtpromise/qpromise/timeout',
|
|
'qtpromise/qpromise/wait',
|
|
'qtpromise/qpromise/reject.md',
|
|
'qtpromise/qpromise/resolve.md'
|
|
]
|
|
},
|
|
{
|
|
title: 'Helpers',
|
|
children: [
|
|
'qtpromise/helpers/all',
|
|
'qtpromise/helpers/attempt',
|
|
'qtpromise/helpers/connect',
|
|
'qtpromise/helpers/each',
|
|
'qtpromise/helpers/filter',
|
|
'qtpromise/helpers/map',
|
|
'qtpromise/helpers/reduce',
|
|
'qtpromise/helpers/resolve'
|
|
]
|
|
},
|
|
{
|
|
title: 'Exceptions',
|
|
children: [
|
|
'qtpromise/exceptions/canceled',
|
|
'qtpromise/exceptions/context',
|
|
'qtpromise/exceptions/timeout',
|
|
'qtpromise/exceptions/undefined'
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|