1
0
mirror of https://github.com/danog/file.git synced 2024-12-02 09:17:57 +01:00
Commit Graph

25 Commits

Author SHA1 Message Date
Aaron Piotrowski
94c3bb631c
Avoid warning when writing an empty string with eio
No warning emitted from uv, but there's also no reason to call uv_fs_write().
2019-01-07 11:32:42 -06:00
Aaron Piotrowski
8cfe851cd2
Add truncate() to Handle
Addresses #32.
2018-10-28 23:55:11 -05:00
Aaron Piotrowski
76cdea9af7
Use shared style defintions; update styles 2018-10-27 10:57:31 -05:00
Aaron Piotrowski
ad309f0cd2
Ignore errors when closing 2017-06-23 17:47:22 -05:00
Aaron Piotrowski
2ce32d57ff
Return same promise on subsequent close calls 2017-06-22 10:18:55 -05:00
Niklas Keller
8b43826073 Ignore double close 2017-06-21 14:07:49 +02:00
Niklas Keller
d2c1409bf4 Use StreamExceptions in Handle, make FilesystemException not extend StreamException 2017-06-21 13:51:59 +02:00
Niklas Keller
a13bb6f721 Use ClosedException as mandated by the ByteStream interfaces
This commit also changes end() to wait for the close() to finish before returning.
2017-06-21 11:01:19 +02:00
Niklas Keller
f2f21ef0c0 Refactor UvDriver and UvHandle to use UvPoll as busy watcher
Fixes #16.
2017-06-20 23:39:14 +02:00
Aaron Piotrowski
c98ea5ec42
Fix code style from merge 2017-06-20 00:31:58 -05:00
Aaron Piotrowski
9e7c1c1488
Forbid simultaneous conflicting ops
Signficantly refactored EioHandle and UvHandle.
2017-06-20 00:17:07 -05:00
Niklas Keller
62428ca0ef Fix code style 2017-06-17 23:41:57 +02:00
Aaron Piotrowski
6ad1b8e55f Update for object-based uv extension 2017-05-16 19:55:24 -05:00
Aaron Piotrowski
9b8b1daeb0 Implement stream interfaces in Handle 2017-05-12 15:43:23 -05:00
Aaron Piotrowski
b3f354472f Update for async-interop merge and other Amp changes 2017-03-16 22:39:49 -05:00
Aaron Piotrowski
0d76557e8e Fix UV driver 2017-01-11 10:29:14 -06:00
Niklas Keller
a26ba1ca1f Change interop namespace 2017-01-11 14:22:06 +01:00
Aaron Piotrowski
c6e6c32aaf Drop strict types
Dropping strict types so it is not enforced in callbacks provided by application code.
2016-12-29 20:59:59 -06:00
Aaron Piotrowski
ffb21714e9 Awaitable → Promise 2016-11-14 23:17:19 -06:00
Aaron Piotrowski
a8af5a281d Parallel driver 2016-08-30 14:05:14 -05:00
Aaron Piotrowski
2db21996c6 Use strict types 2016-08-24 00:01:41 -05:00
Aaron Piotrowski
34599943bc More driver functions; add type declarations; code cleanup 2016-08-23 23:55:06 -05:00
Bob Weinand
1725c684a0 Upgrade to Amp v2 2016-07-21 01:39:27 +02:00
Bob Weinand
cb3b8e536b Fix read lengths (bugfix in php-uv)
Also prepare tag 0.1.1
2016-02-08 02:02:23 +01:00
Daniel Lowrey
ab05daa5a5 Stream file handle support 2015-08-13 10:15:04 -04:00