{ "id": "164374", "key": "TIMOB-24098", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "19101", "name": "Hyperloop 2.1.0", "archived": false, "released": true, "releaseDate": "2017-04-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-04-11T13:41:49.000+0000", "created": "2016-11-04T00:32:38.000+0000", "epic": { "id": 162541, "key": "TIMOB-23765", "name": "Hyperloop for Windows", "summary": "Windows: Direct API Access not working ", "color": { "key": "color_1" }, "done": false }, "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-04-19T01:42:05.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "Some of the WinRT APIs return asynchronous return types, such as {{Windows.Foundation.IAsyncAction}}. For methods that return an asynchronous return type, the operation need be wrapped in a [JavaScript Promise|https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise] object. \r\n\r\n{code}\r\n\r\nvar PathIO = require('Windows.Storage.PathIO');\r\nPathIO.ReadTextAsync('ms-appdata:///somefile.txt').then(\r\n function (content) {\r\n alert(content);\r\n },\r\n function (err) {\r\n alert('It failed!');\r\n }\r\n);\r\n{code}", "attachment": [], "flagged": false, "summary": "Windows: Async native function calls", "creator": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 871, "state": "closed", "name": "2017 Sprint 08 SDK", "startDate": "2017-04-10T15:40:31.217Z", "endDate": "2017-04-24T15:40:00.000Z", "completeDate": "2017-04-23T21:46:37.098Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "417635", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Validated fix with this environment: \r\nNode Version: 6.10.1 \r\nNPM Version: 4.4.4 \r\nAppc CLI: 6.2.0 \r\nAppc CLI NPM: 4.2.9 \r\nTitanium SDK version: 6.1.0v20170417190415 \r\nAppcelerator Studio, build: 4.8.1.201612050850 \r\nOS: Windows 10.0.14393 \r\nTargets: Windows 8.1 & 10 Devices. Windows 10 Emulator\r\nHyperloop 2.1.0\r\n\r\nI installed and executed the demo code that was presented in the PR. With the above emulator and devices, I was able to see the raw HTML content after clicking the button.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-04-19T01:41:23.000+0000", "updated": "2017-04-19T01:41:23.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }